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/Modules/Portal/Portal.php

    r895 r896  
    4343  function DoStart(): void
    4444  {
    45     $this->System->RegisterPage([''], 'PagePortal');
     45    Core::Cast($this->System)->RegisterPage([''], 'PagePortal');
    4646    $this->System->FormManager->RegisterClass('MemberOptions', array(
    4747      'Title' => 'Nastavení zákazníka',
     
    5959      ),
    6060    ));
    61     ModuleUser::Cast($this->System->GetModule('User'))->UserPanel[] = array('PagePortal', 'UserPanel');
     61    ModuleUser::Cast(Core::Cast($this->System)->GetModule('User'))->UserPanel[] = array('PagePortal', 'UserPanel');
    6262  }
    6363}
     
    102102    while ($Action = $DbResult->fetch_assoc())
    103103    {
    104       $Output .= $this->System->ShowAction($Action['Id']).'<br/>';
     104      $Output .= ModuleSystem::Cast($this->System->GetModule('System'))->ShowAction($Action['Id']).'<br/>';
    105105    }
    106106    return $this->Panel($ActionGroup['Name'], $Output);
Note: See TracChangeset for help on using the changeset viewer.