diff --git a/typo3/classes/Bootstrap.php b/typo3/classes/Bootstrap.php index b220b23982d1e239d3096ae60a5e4a9b56c7c098..32480afcf2212fb4287b23134e1cb19dbd656ca0 100644 --- a/typo3/classes/Bootstrap.php +++ b/typo3/classes/Bootstrap.php @@ -1529,5 +1529,18 @@ class Typo3_Bootstrap { die('Calculated absolute path to typo3conf directory does not exist'); } } + + /** + * Provides an instance of "template" for backend-modules to + * work with. + * + * @return Typo3_Bootstrap + */ + public function initializeBackendTemplate() { + $GLOBALS['TBE_TEMPLATE'] = t3lib_div::makeInstance('template'); + + return $this; + } + } ?> diff --git a/typo3/init.php b/typo3/init.php index 7b0bc4b6b7d8c5ee874dcfac5d5cf1207c0b5b61..5c62983cc8e7297ed5e678608fed9c615e9f52c5 100644 --- a/typo3/init.php +++ b/typo3/init.php @@ -110,12 +110,8 @@ Typo3_Bootstrap::getInstance() ->initializeBackendUser() ->initializeBackendUserMounts() ->initializeLanguageObject() + ->initializeBackendTemplate() ->endOutputBufferingAndCleanPreviousOutput() ->initializeOutputCompression(); -// ****************************** -// The template is loaded -// ****************************** -$GLOBALS['TBE_TEMPLATE'] = t3lib_div::makeInstance('template'); - ?> \ No newline at end of file