Changeset 900 for trunk/Packages/Common/ModuleManager.php
- Timestamp:
- Feb 17, 2021, 5:15:29 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/Common/ModuleManager.php
r899 r900 57 57 if ($Action == ModuleAction::Disable) $Module->Disable(); 58 58 if ($Action == ModuleAction::Upgrade) $Module->Upgrade(); 59 if ($Action == ModuleAction::InsertSampleData) $Module->InsertSampleData(); 59 60 } 60 61 } … … 227 228 function RegisterModule(Module $Module): void 228 229 { 230 if (array_key_exists($Module->Name, $this->Modules)) 231 die('Can\'t register module '.$Module->Name.' because it already exists.'); 229 232 $this->Modules[$Module->Name] = &$Module; 230 233 $Module->Manager = &$this;
Note:
See TracChangeset
for help on using the changeset viewer.