Project

General

Profile

Bug #66855 » HtmlViewHelper.Extbase.patch

Patch one :: use Extbase - Carsten Biebricher, 2015-05-08 14:50

View differences:

HtmlViewHelperExtbase.php 2015-05-08 14:24:17.000000000 +0200
protected $contentObject;
/**
* @var \TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController contains a backup of the current $GLOBALS['TSFE'] if used in BE mode
*/
protected $tsfeBackup;
/**
* If the escaping interceptor should be disabled inside this ViewHelper, then set this value to FALSE.
* This is internal and NO part of the API. It is very likely to change.
*
......
* @return void
*/
protected function simulateFrontendEnvironment() {
$this->tsfeBackup = isset($GLOBALS['TSFE']) ? $GLOBALS['TSFE'] : NULL;
$GLOBALS['TSFE'] = new \stdClass();
\TYPO3\CMS\Extbase\Utility\FrontendSimulatorUtility::simulateFrontendEnvironment();
$GLOBALS['TSFE']->tmpl = new \stdClass();
$GLOBALS['TSFE']->tmpl->setup = $this->configurationManager->getConfiguration(\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface::CONFIGURATION_TYPE_FULL_TYPOSCRIPT);
}
......
* @see simulateFrontendEnvironment()
*/
protected function resetFrontendEnvironment() {
$GLOBALS['TSFE'] = $this->tsfeBackup;
\TYPO3\CMS\Extbase\Utility\FrontendSimulatorUtility::resetFrontendEnvironment();
}
}
(1-1/2)