Fixed bug #14630: Backend doesn't use $this->pageRenderer
authorSteffen Kamper <info@sk-typo3.de>
Sun, 6 Jun 2010 10:13:35 +0000 (10:13 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Sun, 6 Jun 2010 10:13:35 +0000 (10:13 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7815 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/backend.php

index aff017a..4688512 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-06-06  Steffen Kamper  <info@sk-typo3.de>
+
+       * Fixed bug #14630: Backend doesn't use $this->pageRenderer
+
 2010-06-06  Benjamin Mack  <benni@typo3.org>
 
        * Fixed bug #1294: movie param of flash object not processed by prefixResourcePath(Thanks to Jigal van Hemert)
index f7db92c..c6bbcb0 100644 (file)
@@ -485,8 +485,7 @@ class TYPO3backend {
        var fsMod = new fsModules();' . $moduleFramesHelper . ';';
 
                        // add goToModule code
-               $pageRenderer = $GLOBALS['TBE_TEMPLATE']->getPageRenderer();
-               $pageRenderer->addExtOnReadyCode('
+               $this->pageRenderer->addExtOnReadyCode('
                        top.goToModule = ' . $goToModuleSwitch . ';
                ');
 
@@ -569,8 +568,7 @@ class TYPO3backend {
 
                $moduleParameters = t3lib_div::_GET('modParams');
                if($startModule) {
-                       $pageRenderer = $GLOBALS['TBE_TEMPLATE']->getPageRenderer();
-                       $pageRenderer->addExtOnReadyCode('
+                       $this->pageRenderer->addExtOnReadyCode('
                        // start in module:
                function startInModule(modName, cMR_flag, addGetVars)   {
                        Ext.onReady(function() {