Browse Source

FIX: removed global from loader

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

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

@@ -73,7 +73,6 @@ 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();
 				}