Changeset 8 for Common/AppModule.php
- Timestamp:
- Jan 22, 2016, 5:13:22 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Common/AppModule.php
r5 r8 197 197 $this->Modules = array(); 198 198 $this->System = &$System; 199 $this->FileName = 'Config/Modules.php';199 $this->FileName = dirname(__FILE__).'/../../Config/ModulesConfig.php'; 200 200 $this->ModulesDir = dirname(__FILE__).'/../../Modules'; 201 201 } … … 232 232 { 233 233 if(!array_key_exists($Dependency, $this->Modules)) 234 throw new Exception( 'Module "'.$Module->Name.'" dependency "'.$Dependency.'" not found');234 throw new Exception(sprintf(T('Module "%s" dependency "%s" not found'), $Module->Name, $Dependency)); 235 235 $DepModule = $this->Modules[$Dependency]; 236 236 if(in_array(ModuleCondition::All, $Conditions) or … … 318 318 } 319 319 320 function ModuleEnabled($Name) 321 { 322 return(array_key_exists($Name, $this->Modules) and $this->Modules[$Name]->Enabled); 323 } 324 325 function ModuleRunning($Name) 326 { 327 return(array_key_exists($Name, $this->Modules) and $this->Modules[$Name]->Running); 328 } 329 320 330 /* @return Module */ 321 331 function SearchModuleById($Id)
Note:
See TracChangeset
for help on using the changeset viewer.