Changeset 894 for trunk/Modules/Admin


Ignore:
Timestamp:
Mar 6, 2023, 12:16:38 PM (21 months ago)
Author:
chronos
Message:
  • Fixed: Export error due to PHP 8.1 deprecated code.
  • Modified: Code cleanup.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Admin/Admin.php

    r893 r894  
    233233        //      $Output .= '<input type="submit" value="uložit"></form>';
    234234
    235 
     235        $FileName = NormalizePath(dirname(__FILE__).'/../source/'.$_SESSION['GameVersion'].'/dbc/'.$Group['DBCFileName'].'.dbc.csv');
    236236        $File = new FileStream();
    237 
    238         $File->OpenFile(dirname(__FILE__).'/../source/'.$_SESSION['GameVersion'].'/dbc/'.
    239           $Group['DBCFileName'].'.dbc.csv');
     237        $File->OpenFile($FileName);
    240238
    241239        //while (!$File->EOF())
     
    254252        {
    255253          foreach ($Group['Items'] as $GroupItem)
     254          {
    256255            $Output .=   ' <a href="'.$this->System->Link('/admin/?action=dbcstructure&amp;id='.
    257256              $Group['Id'].'&amp;GroupItem='.$GroupItem['Id'].'&amp;ColumnIndex='.$i).'">'.
    258257              $GroupItem['Column'].'</a><br/>';
    259             $Output .= '</td><td>';
     258          }
     259          $Output .= '</td><td>';
    260260        }
    261261
Note: See TracChangeset for help on using the changeset viewer.