Skip to content
Snippets Groups Projects
Commit 8d94e305 authored by Markus Klein's avatar Markus Klein Committed by Andreas Wolf
Browse files

[BUGFIX] Core calls deprecated ADMCMD_preview()

The Core still calls tslib_fe->ADMCMD_preview() in index_ts.php.
Remove the whole code block, since this has been moved to Tx_Version.

The corresponding function in Tx_Version_Preview is already called in
the connectToDB hook.

Change-Id: I24152ecd3183a17257eb79a58f5270d0fce3a04d
Fixes: #31290
Relates: #27931
Releases: 4.7, 4.6
Reviewed-on: http://review.typo3.org/6344
Reviewed-by: Oliver Klee
Reviewed-by: Simon Schaufelberger
Tested-by: Simon Schaufelberger
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
Reviewed-by: Andreas Wolf
Tested-by: Andreas Wolf
parent 05ac7b98
No related merge requests found
......@@ -210,22 +210,6 @@ if($TYPO3_CONF_VARS['FE']['pageUnavailable_force'] &&
$TSFE->connectToDB();
// In case of a keyword-authenticated preview, re-initialize the TSFE object:
if ($temp_previewConfig = $TSFE->ADMCMD_preview()) {
$TSFE = t3lib_div::makeInstance('tslib_fe',
$TYPO3_CONF_VARS,
t3lib_div::_GP('id'),
t3lib_div::_GP('type'),
t3lib_div::_GP('no_cache'),
t3lib_div::_GP('cHash'),
t3lib_div::_GP('jumpurl'),
t3lib_div::_GP('MP'),
t3lib_div::_GP('RDCT')
);
$TSFE->ADMCMD_preview_postInit($temp_previewConfig);
}
$TSFE->sendRedirect();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment