mirror of
https://github.com/friendica/friendica
synced 2025-04-27 21:50:11 +00:00
Move $strings from App to Core\L10n
- Add L10n::init() call in App constructor - Improve pushLang/popLang - Remove no longer needed references to App
This commit is contained in:
parent
baa1094489
commit
c6f0bea51d
6 changed files with 137 additions and 80 deletions
|
@ -68,11 +68,6 @@ HELP;
|
|||
throw new \RuntimeException('Database isn\'t ready or populated yet');
|
||||
}
|
||||
|
||||
Core\Config::load();
|
||||
|
||||
$lang = Core\L10n::getBrowserLanguage();
|
||||
Core\L10n::loadTranslationTable($lang);
|
||||
|
||||
$enabled = intval($this->getArgument(0));
|
||||
|
||||
Core\Config::set('system', 'maintenance', $enabled);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue