Changeset 893 for trunk/Modules/Import


Ignore:
Timestamp:
Mar 6, 2023, 1:48:45 AM (22 months ago)
Author:
chronos
Message:
  • Fixed: Class types casting for better type checking.
  • Fixed: XML direct export.
  • Modified: User class instance moved from Core class to ModuleUser class.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Import/Manage.php

    r888 r893  
    4747      '<a href="?action=instructions">Instrukce pro přípravu zdrojových souborů</a><br/>'.
    4848      '<a href="?action=update_translated">Zaktualizovat verze přeložených</a><br/><br/>'.
    49       'Verze klienta použitá pro import: <strong>'.$this->System->Config['Web']['GameVersion'].'</strong><br/>';
     49      'Verze klienta použitá pro import: <strong>'.Core::Cast($this->System)->Config['Web']['GameVersion'].'</strong><br/>';
    5050    $DbResult = $this->System->Database->query('SELECT COUNT(*) FROM `Group`');
    5151    $DbRow = $DbResult->fetch_row();
     
    9898  function Show(): string
    9999  {
     100    $User = ModuleUser::Cast($this->System->GetModule('User'))->User;
    100101    $this->Title = T('Import');
    101102    $Output = '';
    102     if ($this->System->User->Licence(LICENCE_ADMIN))
     103    if ($User->Licence(LICENCE_ADMIN))
    103104    {
    104105    if (array_key_exists('action', $_GET))
Note: See TracChangeset for help on using the changeset viewer.