Bug #96658 » workspaces-PreviewController.patch
./Classes/Controller/PreviewController.php.bak → ./Classes/Controller/PreviewController.php | ||
---|---|---|
$queryParameters['_language'] = $site->getLanguageById((int)$queryParameters['L']);
|
||
unset($queryParameters['L']);
|
||
}
|
||
$parameters = $queryParameters;
|
||
$pageInfo = BackendUtility::getRecord('pages', $this->pageId, 'uid,fe_group,starttime,endtime,extendToSubpages');
|
||
$context = clone GeneralUtility::makeInstance(\TYPO3\CMS\Core\Context\Context::class);
|
||
$additionalQueryParameters = BackendUtility::ADMCMD_previewCmds($pageInfo, $context);
|
||
$additionalQueryParameters = GeneralUtility::explodeUrl2Array($additionalQueryParameters);
|
||
$parameters = array_merge($queryParameters, $additionalQueryParameters);
|
||
if (!WorkspaceService::isNewPage($this->pageId)) {
|
||
$parameters['ADMCMD_prev'] = 'LIVE';
|
||
$liveUrl = $this->generateUrl($site, $this->pageId, $parameters);
|
||
}
|
||
$parameters = $queryParameters;
|
||
$pageInfo = BackendUtility::getRecordWSOL('pages', $this->pageId, 'uid,fe_group,starttime,endtime,extendToSubpages');
|
||
$context = clone GeneralUtility::makeInstance(\TYPO3\CMS\Core\Context\Context::class);
|
||
$additionalQueryParameters = BackendUtility::ADMCMD_previewCmds($pageInfo, $context);
|
||
$additionalQueryParameters = GeneralUtility::explodeUrl2Array($additionalQueryParameters);
|
||
$parameters = array_merge($queryParameters, $additionalQueryParameters);
|
||
$parameters['ADMCMD_prev'] = 'IGNORE';
|
||
$wsUrl = $this->generateUrl($site, $this->pageId, $parameters);
|
||
} catch (SiteNotFoundException | InvalidRouteArgumentsException $e) {
|