]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Get correct configured language when all else fails
authorCiaranG <ciaran@ciarang.com>
Tue, 16 Sep 2008 17:27:06 +0000 (13:27 -0400)
committerCiaranG <ciaran@ciarang.com>
Tue, 16 Sep 2008 17:27:06 +0000 (13:27 -0400)
darcs-hash:20080916172706-f6e2c-762079233fd311ac6f1995415beb36d60484c496.gz

lib/util.php

index b67782af3474507150505be7f38bd20631d16fa1..0b71cfe4f596e321e9dceaa2fe524f952ccff320 100644 (file)
@@ -489,7 +489,7 @@ function common_language() {
                     return $language;
                 }
         } else {
-                return common_config('site', 'language');
+                return $config['site']['language'];
         }
 }
 # salted, hashed passwords are stored in the DB