Ignore:
Timestamp:
Apr 7, 2020, 10:15:48 PM (4 years ago)
Author:
chronos
Message:
  • Modified: Improved code formatting.
File:
1 edited

Legend:

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

    r859 r880  
    1919    '<li>Po provedení importu je potřeba několikrát spustit skript na aktualizaci verze u překladu. Je potřeba ho provádět opakovaně dokud nezmizí tečky označující, že byly provedeny změny.</li>'.
    2020    '</ol>';
    21     return($Output);
     21    return $Output;
    2222  }
    2323
     
    2626    global $System;
    2727
    28     if(array_key_exists('id', $_GET))
     28    if (array_key_exists('id', $_GET))
    2929    {
    3030      $Output = '<div style="font-size: xx-small;">';
     
    3838      $Output .= '</div>';
    3939    } else $Output = ShowMessage('Nebylo zadáno id skupiny.', MESSAGE_CRITICAL);
    40     return($Output);
     40    return $Output;
    4141  }
    4242
     
    6868
    6969    $DbResult = $this->System->Database->query('SELECT * FROM `Group`'.$Order['SQL'].$PageList['SQLLimit']);
    70     while($Group = $DbResult->fetch_assoc())
     70    while ($Group = $DbResult->fetch_assoc())
    7171    {
    7272      $Output .= '<tr><td>'.T($Group['Name']).'</td>'.
    7373        '<td>'.$Group['SourceType'].'</td><td>';
    74       if($Group['MangosTable'] != '') $Output .= $Group['MangosTable'].'.sql ';
    75       if($Group['DBCFileName'] != '') $Output .= $Group['DBCFileName'].'.dbc ';
    76       if($Group['LuaFileName'] != '') $Output .= $Group['LuaFileName'].'.lua ';
     74      if ($Group['MangosTable'] != '') $Output .= $Group['MangosTable'].'.sql ';
     75      if ($Group['DBCFileName'] != '') $Output .= $Group['DBCFileName'].'.dbc ';
     76      if ($Group['LuaFileName'] != '') $Output .= $Group['LuaFileName'].'.lua ';
    7777      $Output .= '</td>'.
    7878        '<td><a title="Změny po posledním importu u vybrané překladové skupiny" href="../log/?group='.$Group['Id'].'&amp;type=11">'.HumanDate($Group['LastImport']).'</a></td>'.
     
    8282    }
    8383    $Output .= '</table>';
    84     return($Output);
     84    return $Output;
    8585  }
    8686
     
    9393    $Output .= $Import->UpdateTranslated();
    9494    $Output .= '</div>';
    95     return($Output);
     95    return $Output;
    9696  }
    9797
     
    100100    $this->Title = T('Import');
    101101    $Output = '';
    102     if($this->System->User->Licence(LICENCE_ADMIN))
     102    if ($this->System->User->Licence(LICENCE_ADMIN))
    103103    {
    104     if(array_key_exists('action', $_GET))
     104    if (array_key_exists('action', $_GET))
    105105    {
    106       if($_GET['action'] == 'instructions') $Output .= $this->ShowInstructions();
    107       else if($_GET['action'] == 'importgroup') $Output .= $this->ShowImportGroup();
    108       else if($_GET['action'] == 'update_translated') $Output .= $this->UpdateTranslated();
     106      if ($_GET['action'] == 'instructions') $Output .= $this->ShowInstructions();
     107      else if ($_GET['action'] == 'importgroup') $Output .= $this->ShowImportGroup();
     108      else if ($_GET['action'] == 'update_translated') $Output .= $this->UpdateTranslated();
    109109      else $Output .= $this->ShowMenu();
    110110    } else $Output .= $this->ShowMenu();
    111111    } else $Output .= ShowMessage(T('Access denied'), MESSAGE_CRITICAL);
    112     return($Output);
     112    return $Output;
    113113  }
    114114}
Note: See TracChangeset for help on using the changeset viewer.