Changeset 383 for trunk/Common/Module.php
- Timestamp:
- Jan 23, 2012, 10:37:31 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Module.php
r379 r383 77 77 var $Modules = array(); 78 78 var $Models = array(); 79 var $Menu = array(); 79 80 80 81 function __construct($Database) … … 92 93 //DebugLog('Loading modules...'); 93 94 $this->Modules = array(); 94 $Query = 'SELECT `Id`, `Name` FROM `SystemModule`';95 $Query = 'SELECT `Id`, `Name`,`Installed` FROM `SystemModule`'; 95 96 if($Installed) $Query .= ' WHERE `Installed`=1'; 96 else $Query .= ' WHERE `Installed`=0';97 else $Query .= ''; // WHERE `Installed`=0'; 97 98 $DbResult = $this->Database->query($Query); 98 99 while($Module = $DbResult->fetch_array()) … … 103 104 $NewModule = new $ModuleClassName($this->Database, $this); 104 105 $NewModule->Id = $Module['Id']; 106 $NewModule->Installed = $Module['Installed']; 105 107 $this->Modules[$Module['Name']] = $NewModule; 106 108 } … … 146 148 $this->LoadModules(false); 147 149 foreach($this->Modules as $Index => $Module) 148 { 150 { 149 151 $this->Modules[$Index]->Install(); 150 152 }
Note:
See TracChangeset
for help on using the changeset viewer.