Giancarlo Voci 7 years ago
parent
commit
832fc874e9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/OpenMind/System/OMUtils.php

+ 1 - 0
src/OpenMind/System/OMUtils.php

@@ -73,6 +73,7 @@ class OMUtils
 			$moduleInitPath = "{$item->getPathname()}/{$moduleName}.php";
 			if (file_exists($moduleInitPath)) { // If already imported, skip
 				if (!isset($$moduleName)) {
+					Global $$moduleName;
 					$$moduleName = new $className(); // Instantiate the Module, all init procedure must reside in __constructor() method
 					$$moduleName->setTsStartLoad();
 				}