Ignore:
Timestamp:
Jan 14, 2021, 7:38:26 PM (4 years ago)
Author:
chronos
Message:
  • Fixed: Correct typecasting of System class.
File:
1 edited

Legend:

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

    r895 r896  
    425425  function DoStart(): void
    426426  {
    427     $this->System->RegisterPage([''], 'PageSetupRedirect');
    428     $this->System->RegisterPage(['setup'], 'PageSetup');
    429     $this->System->RegisterPage(['setup', 'modules'], 'PageSetupModules');
     427    Core::Cast($this->System)->RegisterPage([''], 'PageSetupRedirect');
     428    Core::Cast($this->System)->RegisterPage(['setup'], 'PageSetup');
     429    Core::Cast($this->System)->RegisterPage(['setup', 'modules'], 'PageSetupModules');
    430430  }
    431431
     
    433433  {
    434434    unset($this->UpdateManager);
    435     $this->System->UnregisterPage(['']);
    436     $this->System->UnregisterPage(['setup']);
    437     $this->System->UnregisterPage(['setup', 'modules']);
     435    Core::Cast($this->System)->UnregisterPage(['']);
     436    Core::Cast($this->System)->UnregisterPage(['setup']);
     437    Core::Cast($this->System)->UnregisterPage(['setup', 'modules']);
    438438  }
    439439
Note: See TracChangeset for help on using the changeset viewer.