Changeset 374 for trunk/Common/Module.php
- Timestamp:
- Jan 20, 2012, 7:36:57 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Module.php
r373 r374 14 14 var $Database; 15 15 var $Installed; 16 var $Initialized; 16 17 var $System; 17 18 … … 20 21 $this->Database = &$Database; 21 22 $this->System = &$System; 23 $this->Initialized = false; 24 $this->Installed = false; 22 25 } 23 26 … … 49 52 function Init() 50 53 { 54 $this->Initialized = true; 55 foreach($this->Dependencies as $Dependency) 56 if(!$this->System->Modules[$Dependency]->Initialized) 57 $this->System->Modules[$Dependency]->Init(); 51 58 } 52 59 } … … 80 87 $this->Modules[$Module['Name']] = new $ModuleClassName($this->Database, $this); 81 88 $this->Modules[$Module['Name']]->Id = $Module['Id']; 82 $this->Modules[$Module['Name']]->Init();83 89 } 90 foreach($this->Modules as $Index => $Module) 91 $this->Modules[$Index]->Init(); 84 92 } 85 93
Note:
See TracChangeset
for help on using the changeset viewer.