Changeset 579 for trunk/Common/AppModule.php
- Timestamp:
- Oct 11, 2013, 11:28:10 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/AppModule.php
r576 r579 42 42 function Install() 43 43 { 44 $this->Installed = true; 44 45 } 45 46 46 47 function Uninstall() 47 48 { 49 $this->Installed = false; 48 50 } 49 51 50 52 function Start() 51 53 { 54 $this->Running = true; 52 55 } 53 56 54 57 function Stop() 55 58 { 59 $this->Running = false; 56 60 } 57 61 } … … 74 78 { 75 79 //DebugLog('Init module '.$Module->Name); 76 $this->Modules[$Index]->Start(); 80 if($this->Modules[$Index]->Running == false) 81 $this->Modules[$Index]->Start(); 77 82 } 78 83 } … … 83 88 { 84 89 //DebugLog('Init module '.$Module->Name); 85 $this->Modules[$Index]->Stop(); 90 if($this->Modules[$Index]->Running == true) 91 $this->Modules[$Index]->Stop(); 86 92 } 87 93 }
Note:
See TracChangeset
for help on using the changeset viewer.