]> git.mxchange.org Git - friendica.git/commitdiff
isolate translateable files
authorFriendika <info@friendika.com>
Tue, 16 Nov 2010 05:22:22 +0000 (21:22 -0800)
committerFriendika <info@friendika.com>
Tue, 16 Nov 2010 05:22:22 +0000 (21:22 -0800)
boot.php

index c90d05130527c9fdd2a2e1554b9c7b2af220d476..f0d40544f4ff0e066bda9b35bc294c9145d0ef56 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -1295,7 +1295,9 @@ function load_view_file($s) {
        $b = basename($s);
        $d = dirname($s);
        $lang = get_config('system','language');
-       if($lang && file_exists("$d/$lang/$b"))
+       if($lang === false)
+               $lang = 'en';
+       if(file_exists("$d/$lang/$b"))
                return file_get_contents("$d/$lang/$b");
        return file_get_contents($s);
 }}