Changeset 895 for trunk/Application/Core.php
- Timestamp:
- Jan 12, 2021, 10:29:50 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/Core.php
r887 r895 22 22 public string $RootURLFolder; 23 23 public bool $ShowPage; 24 public Setup $Setup;25 24 public array $PageHeaders; 26 25 public BaseView $BaseView; … … 78 77 } 79 78 80 function AddModule($Module): void81 {82 $this->ModuleManager->Modules[get_class($Module)] = $Module;83 }84 85 79 function HumanDate(int $Time): string 86 80 { … … 131 125 $this->Config = &$Config; 132 126 133 try { 127 try 128 { 134 129 $this->Database->Connect($this->Config['Database']['Host'], $this->Config['Database']['User'], 135 130 $this->Config['Database']['Password'], $this->Config['Database']['Database']); … … 140 135 if (isset($this->Config['Web']['LogSQLQuery'])) 141 136 $this->Database->LogSQLQuery = $this->Config['Web']['LogSQLQuery']; 142 } catch (Exception $E) { 137 } catch (Exception $E) 138 { 143 139 //$Output .= 'Nelze se připojit k databázi.'; 144 140 } … … 162 158 RegisterFormClasses($this->FormManager); 163 159 164 // Register and start existing modules 165 $this->Setup = new Setup($this); 166 $this->Setup->Start(); 167 if ($this->Setup->CheckState()) 168 { 169 $this->ModuleManager->Start(); 170 } 160 $this->ModuleManager->Start(); 171 161 } 172 162
Note:
See TracChangeset
for help on using the changeset viewer.