From: Hypolite Petovan Date: Tue, 17 Jul 2018 06:05:52 +0000 (-0400) Subject: Add support for legacy $lang config in App->loadConfig X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d993c8584c4c2b6023606e727ea3e0db6a6bde51;p=friendica.git Add support for legacy $lang config in App->loadConfig --- diff --git a/src/App.php b/src/App.php index 6304ca995a..08cf382b54 100644 --- a/src/App.php +++ b/src/App.php @@ -357,6 +357,11 @@ class App $this->setConfigValue('system', 'pidfile', $pidfile); unset($pidfile); } + + if (isset($lang)) { + $this->setConfigValue('system', 'language', $lang); + unset($lang); + } } if (file_exists($this->basepath . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'local.ini.php')) {