Fixed bug #12037: Fatal Error in Configuration > $TBE_MODULES
authorSteffen Kamper <info@sk-typo3.de>
Wed, 23 Sep 2009 15:51:35 +0000 (15:51 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Wed, 23 Sep 2009 15:51:35 +0000 (15:51 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6039 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/mod.php

index 9ea3317..d875a1f 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@
 
 2009-09-23  Steffen Kamper  <info@sk-typo3.de>
 
+       * Fixed bug #12037: Fatal Error in Configuration > $TBE_MODULES
        * Follow-up to bug #12014: Extension Manager is not translatable: corrected typo
        * Follow-up 2 to bug #12017: Respect full path of CSS inclusion (RTE)
 
index 3fad29c..9296179 100644 (file)
@@ -52,12 +52,11 @@ if ($temp_path = $TBE_MODULES['_PATHS'][$temp_M]) {
        $isDispatched = TRUE;
 } else {       
        if (is_array($TBE_MODULES['_dispatcher'])) {
-               foreach ($TBE_MODULES['_dispatcher'] as $dispatcher) {
-                       if (is_object($dispatcher)) {
-                               if ($dispatcher->callModule($temp_M) === TRUE) {
-                                       $isDispatched = TRUE;
-                                       break;
-                               }
+               foreach ($TBE_MODULES['_dispatcher'] as $dispatcherClassName) {
+                       $dispatcher = t3lib_div::makeInstance($dispatcherClassName);
+                       if ($dispatcher->callModule($temp_M) === TRUE) {
+                               $isDispatched = TRUE;
+                               break;
                        }
                }
        }