Ignore:
Timestamp:
Apr 14, 2015, 10:20:16 PM (9 years ago)
Author:
chronos
Message:
  • Removed: Spaces on end of line.
  • Modified: Tabs converted to spaces.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Common/Setup/Setup.php

    r737 r738  
    6969  function Show()
    7070  {
    71           global $ConfigDefinition, $DatabaseRevision, $Config, $Updates;
    72 
    73           $this->UpdateManager = $this->System->Setup->UpdateManager;
    74           $DefaultConfig = new DefaultConfig();
    75           $this->ConfigDefinition = $DefaultConfig->Get();
    76           $this->DatabaseRevision = $DatabaseRevision;
    77           $this->Config = &$Config;
    78 
    79           $Output = '';
     71    global $ConfigDefinition, $DatabaseRevision, $Config, $Updates;
     72
     73    $this->UpdateManager = $this->System->Setup->UpdateManager;
     74    $DefaultConfig = new DefaultConfig();
     75    $this->ConfigDefinition = $DefaultConfig->Get();
     76    $this->DatabaseRevision = $DatabaseRevision;
     77    $this->Config = &$Config;
     78
     79    $Output = '';
    8080    if(isset($this->Config))
    8181    {
     
    105105            $Output .= $this->System->Setup->Upgrade();
    106106          } catch (Exception $E) {
    107                   $Output .= $this->SystemMessage('Chyba aktualizace', 'Došlo k chybě v SQL dotazu při aktualizaci: <br/>'.$E->getMessage());
    108             }
    109                 $Output .= $this->ControlPanel();
     107            $Output .= $this->SystemMessage('Chyba aktualizace', 'Došlo k chybě v SQL dotazu při aktualizaci: <br/>'.$E->getMessage());
     108          }
     109          $Output .= $this->ControlPanel();
    110110        } else
    111111        if($Action == 'install')
     
    353353class PageSetupRedirect extends Page
    354354{
    355         function Show()
    356         {
    357           $Output = '';
    358           if(!$this->Database->Connected()) $Output .= 'Nelze se připojit k databázi.<br>';
    359           else {
    360             if(!$this->System->Setup->UpdateManager->IsInstalled())
    361               $Output .= 'Systém vyžaduje instalaci databáze.<br>';
    362             else
    363             if(!$this->System->Setup->UpdateManager->IsUpToDate())
    364               $Output .= 'Systém vyžaduje aktualizaci databáze.<br>';
    365           }
    366           $Output .= 'Pokračujte <a href="'.$this->System->Link('/setup/').'">zde</a>';
    367                 return($Output);
    368         }
     355  function Show()
     356  {
     357    $Output = '';
     358    if(!$this->Database->Connected()) $Output .= 'Nelze se připojit k databázi.<br>';
     359    else {
     360      if(!$this->System->Setup->UpdateManager->IsInstalled())
     361        $Output .= 'Systém vyžaduje instalaci databáze.<br>';
     362      else
     363      if(!$this->System->Setup->UpdateManager->IsUpToDate())
     364        $Output .= 'Systém vyžaduje aktualizaci databáze.<br>';
     365    }
     366    $Output .= 'Pokračujte <a href="'.$this->System->Link('/setup/').'">zde</a>';
     367    return($Output);
     368  }
    369369}
    370370
     
    404404  function Install()
    405405  {
    406         global $DatabaseRevision;
     406    global $DatabaseRevision;
    407407
    408408    $this->Database->query('CREATE TABLE IF NOT EXISTS `SystemVersion` (
Note: See TracChangeset for help on using the changeset viewer.