From: Friendika Date: Tue, 16 Nov 2010 05:22:22 +0000 (-0800) Subject: isolate translateable files X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=21c18cedc7638142a55cf9076e98db0c2f8707d3;p=friendica.git isolate translateable files --- diff --git a/boot.php b/boot.php index c90d051305..f0d40544f4 100644 --- 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); }}