]> git.mxchange.org Git - friendica.git/blobdiff - include/pgettext.php
Central item expiration routine for external items
[friendica.git] / include / pgettext.php
index 424e5b2a365bfe1945aba3d471b6848e536bd470..9b541e8e3c77f6fe1cc3bd776a0490145af3ffe7 100644 (file)
@@ -10,7 +10,7 @@
  *
  */
 
-use \Friendica\Core\Config;
+use Friendica\Core\Config;
 
 require_once("include/dba.php");
 
@@ -44,7 +44,7 @@ function get_browser_language() {
        // check if we have translations for the preferred languages and pick the 1st that has
        for ($i=0; $i<count($lang_list); $i++) {
                $lang = $lang_list[$i];
-               if($lang === 'en' || file_exists("view/lang/$lang") && is_dir("view/lang/$lang")) {
+               if ($lang === 'en' || (file_exists("view/lang/$lang") && is_dir("view/lang/$lang"))) {
                        $preferred = $lang;
                        break;
                }