Changeset 590 for trunk/Modules/Setup/Setup.php
- Timestamp:
- Nov 2, 2013, 12:10:42 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Setup/Setup.php
r589 r590 26 26 $UpdateInterface->DatabaseRevision = $DatabaseRevision; 27 27 $UpdateInterface->Config = &$Config; 28 $UpdateInterface->Updates = &$Updates; 28 $Updates = new Updates(); 29 $UpdateInterface->Updates = $Updates->Get(); 29 30 return($UpdateInterface->Show()); 30 31 } … … 35 36 function Show() 36 37 { 37 echo('s');38 38 $Output = ''; 39 39 if(!$this->Database->Connected()) $Output .= 'Nelze se připojit k databázi.<br>'; 40 40 else { 41 if(!$this->System->ModuleManager->Modules['Setup']->UpdateManager->IsInstalled()) $Output .= 'Systém vyžaduje instalaci databáze.<br>'; 42 if(!$this->System->ModuleManager->Modules['Setup']->UpdateManager->IsUpToDate()) $Output .= 'Systém vyžaduje aktualizaci databáze.<br>'; 41 if(!$this->System->ModuleManager->Modules['Setup']->UpdateManager->IsInstalled()) 42 $Output .= 'Systém vyžaduje instalaci databáze.<br>'; 43 else 44 if(!$this->System->ModuleManager->Modules['Setup']->UpdateManager->IsUpToDate()) 45 $Output .= 'Systém vyžaduje aktualizaci databáze.<br>'; 43 46 } 44 47 $Output .= 'Pokračujte <a href="'.$this->System->Link('/setup/').'">zde</a>'; … … 75 78 } 76 79 80 function DoStop() 81 { 82 unset($this->UpdateManager); 83 $this->System->UnregisterPage(''); 84 $this->System->UnregisterPage('setup'); 85 } 86 77 87 function CheckState() 78 88 { 79 89 return($this->Database->Connected() and $this->UpdateManager->IsInstalled() and 80 90 $this->UpdateManager->IsUpToDate()); 81 91 } 82 92 }
Note:
See TracChangeset
for help on using the changeset viewer.