Changeset 896 for trunk/Modules/User


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/User/User.php

    r895 r896  
    4141  {
    4242    if (isset($_SERVER['REMOTE_ADDR'])) $this->User->Check();
    43     $this->System->RegisterPage(['userlist'], 'PageUserList');
    44     $this->System->RegisterPage(['user'], 'PageUser');
    45     $this->System->RegisterPageBarItem('Top', 'User', array($this, 'TopBarCallback'));
     43    Core::Cast($this->System)->RegisterPage(['userlist'], 'PageUserList');
     44    Core::Cast($this->System)->RegisterPage(['user'], 'PageUser');
     45    Core::Cast($this->System)->RegisterPageBarItem('Top', 'User', array($this, 'TopBarCallback'));
    4646    $this->System->FormManager->RegisterClass('UserLogin', array(
    4747      'Title' => 'Přihlášení uživatele',
     
    180180      'Filter' => '1',
    181181    ));
    182     ModuleIS::Cast($this->System->GetModule('IS'))->RegisterDashboardItem('User',
     182    ModuleIS::Cast(Core::Cast($this->System)->GetModule('IS'))->RegisterDashboardItem('User',
    183183      array($this, 'ShowDashboardItem'));
    184184  }
     
    196196    if ($this->User->User['Id'] == null)
    197197    {
    198       $Output = '<a href="'.$this->System->Link('/user/?Action=LoginForm').'">Přihlášení</a> '.
    199         '<a href="'.$this->System->Link('/user/?Action=UserRegister').'">Registrace</a>';
     198      $Output = '<a href="'.Core::Cast($this->System)->Link('/user/?Action=LoginForm').'">Přihlášení</a> '.
     199        '<a href="'.Core::Cast($this->System)->Link('/user/?Action=UserRegister').'">Registrace</a>';
    200200    } else
    201201    {
    202202      $Output = $this->User->User['Name'].
    203         ' <a href="'.$this->System->Link('/user/?Action=UserMenu').'">Nabídka</a>'.
    204         ' <a href="'.$this->System->Link('/user/?Action=Logout').'">Odhlásit</a>';
     203        ' <a href="'.Core::Cast($this->System)->Link('/user/?Action=UserMenu').'">Nabídka</a>'.
     204        ' <a href="'.Core::Cast($this->System)->Link('/user/?Action=Logout').'">Odhlásit</a>';
    205205      //   <a href="'.$this->System->Link('/?Action=UserOptions').'">Nastavení</a>';
    206206    }
Note: See TracChangeset for help on using the changeset viewer.