]> git.mxchange.org Git - friendica.git/commitdiff
Add support for legacy $lang config in App->loadConfig
authorHypolite Petovan <mrpetovan@gmail.com>
Tue, 17 Jul 2018 06:05:52 +0000 (02:05 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Tue, 17 Jul 2018 06:05:52 +0000 (02:05 -0400)
src/App.php

index 6304ca995abd7f923e1c66eb8e73b038f3cc769d..08cf382b5467f2e3131e32d40802b18eee3a4e50 100644 (file)
@@ -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')) {