Fixed bug #13604: PHP Warning from t3lib_loadmodules after installing extbase, becaus...
authorJochen Rau <j.rau@web.de>
Thu, 27 May 2010 08:34:58 +0000 (08:34 +0000)
committerJochen Rau <j.rau@web.de>
Thu, 27 May 2010 08:34:58 +0000 (08:34 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7691 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_loadmodules.php

index 6f74e1b..b6f9b5d 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-05-27  Jochen Rau <jochen.rau@typoplanet.de>
+
+       * Fixed bug #13604: PHP Warning from t3lib_loadmodules after installing extbase, because $TBE_MODULES['_dispatcher'] is not unset (thanks to Marc Bastian Heinrichs)
+
 2010-05-27  Tobias Liebig  <mail_typo3@etobi.de>
 
        * Fixed bug #14388: TypoScript templates containing a "$1" become corrupted
index c712590..50ac618 100644 (file)
@@ -133,6 +133,10 @@ class t3lib_loadModules {
                        //
                $this->absPathArray = $modulesArray['_PATHS'];
                unset($modulesArray['_PATHS']);
+                       // unset the array for calling external backend module dispatchers in typo3/mod.php 
+               unset($modulesArray['_dispatcher']);
+                       // unset the array for calling backend modules based on external backend module dispatchers in typo3/mod.php 
+               unset($modulesArray['_configuration']);
 
                        /*
                                With the above data for modules the result of this function call will be:
@@ -389,8 +393,8 @@ class t3lib_loadModules {
                }
 
                        // Check for own way of configuring module
-               if (is_array($GLOBALS['TBE_MODULES'][$name]['configureModuleFunction'])) {
-                       $obj = $GLOBALS['TBE_MODULES'][$name]['configureModuleFunction'];
+               if (is_array($GLOBALS['TBE_MODULES']['_configuration'][$name]['configureModuleFunction'])) {
+                       $obj = $GLOBALS['TBE_MODULES']['_configuration'][$name]['configureModuleFunction'];
                        if (is_callable($obj)) {
                                return call_user_func($obj, $name, $fullpath);
                        }