Changeset 893 for trunk/Modules/Admin/Admin.php
- Timestamp:
- Mar 6, 2023, 1:48:45 AM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Admin/Admin.php
r888 r893 34 34 35 35 $Output .= '<br />'. 36 '<a href="https://'. $this->System->Config['Web']['Host'].'/phpmyadmin/">'.T('Database management').'</a><br/>'.36 '<a href="https://'.Core::Cast($this->System)->Config['Web']['Host'].'/phpmyadmin/">'.T('Database management').'</a><br/>'. 37 37 '<small>Rozhraní phpMyAdmin pro přímou správu databáze</small><br/><br/>'. 38 38 '<a href="'.$this->System->Link('/import/').'">'.T('Text import').'</a><br/>'. … … 114 114 function RepairVersionEnd() 115 115 { 116 $TranslationTree = $this->System->ModuleManager->Modules['Translation']->GetTranslationTree();116 $TranslationTree = ModuleTranslation::Cast($this->System->ModuleManager->GetModule('Translation'))->GetTranslationTree(); 117 117 118 118 $Output = ''; … … 149 149 function MergeSameText() 150 150 { 151 $TranslationTree = $this->System->ModuleManager->Modules['Translation']->GetTranslationTree();151 $TranslationTree = ModuleTranslation::Cast($this->System->ModuleManager->GetModule('Translation'))->GetTranslationTree(); 152 152 153 153 $Output = ''; … … 205 205 function DbcStructure() 206 206 { 207 $TranslationTree = $this->System->ModuleManager->Modules['Translation']->GetTranslationTree();207 $TranslationTree = ModuleTranslation::Cast($this->System->ModuleManager->GetModule('Translation'))->GetTranslationTree(); 208 208 209 209 $Output = ''; … … 213 213 } 214 214 if (!array_key_exists('GameVersion', $_SESSION)) 215 $_SESSION['GameVersion'] = $this->System->Config['Web']['GameVersion'];215 $_SESSION['GameVersion'] = Core::Cast($this->System)->Config['Web']['GameVersion']; 216 216 217 217 $Output .= '<br />Nastavená verze: '.$_SESSION['GameVersion'].'<br />'; … … 295 295 function ShowLocale() 296 296 { 297 $this->System->LocaleManager->UpdateAll(dirname(dirname(__FILE__)));297 Core::Cast($this->System)->LocaleManager->UpdateAll(dirname(dirname(__FILE__))); 298 298 $Output = 'Překlad rozhraní přegenerován'; 299 299 $Output .= '<table class="BaseTable"><tr><th>Originál</th><th>Překlad</th></tr>'; 300 foreach ( $this->System->LocaleManager->CurrentLocale->Texts->Data as $Index => $Item)300 foreach (Core::Cast($this->System)->LocaleManager->CurrentLocale->Texts->Data as $Index => $Item) 301 301 $Output .= '<tr><td>'.$Index.'</td><td>'.$Item.'</td></tr>'; 302 302 $Output .= '</table>'; … … 307 307 function Show(): string 308 308 { 309 $User = ModuleUser::Cast($this->System->GetModule('User'))->User; 309 310 $this->Title = T('Administration'); 310 311 $Output = ''; 311 if ($ this->System->User->Licence(LICENCE_ADMIN))312 if ($User->Licence(LICENCE_ADMIN)) 312 313 { 313 314 if (array_key_exists('action', $_GET))
Note:
See TracChangeset
for help on using the changeset viewer.