[BUGFIX] Core calls deprecated ADMCMD_preview()
authorMarkus Klein <klein.t3@mfc-linz.at>
Wed, 26 Oct 2011 01:23:13 +0000 (20:23 -0500)
committerAndreas Wolf <andreas.wolf@ikt-werk.de>
Sat, 12 Nov 2011 21:40:25 +0000 (22:40 +0100)
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
typo3/sysext/cms/tslib/index_ts.php

index 98e6a1b..416a5ca 100644 (file)
@@ -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();