Ignore:
Timestamp:
Feb 17, 2021, 5:15:29 PM (4 years ago)
Author:
chronos
Message:
  • Modified: Insert sample data action partially implemented.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/Common/ModuleManager.php

    r899 r900  
    5757          if ($Action == ModuleAction::Disable) $Module->Disable();
    5858          if ($Action == ModuleAction::Upgrade) $Module->Upgrade();
     59          if ($Action == ModuleAction::InsertSampleData) $Module->InsertSampleData();
    5960        }
    6061      }
     
    227228  function RegisterModule(Module $Module): void
    228229  {
     230    if (array_key_exists($Module->Name, $this->Modules))
     231      die('Can\'t register module '.$Module->Name.' because it already exists.');
    229232    $this->Modules[$Module->Name] = &$Module;
    230233    $Module->Manager = &$this;
Note: See TracChangeset for help on using the changeset viewer.