diff options
author | Friendika <info@friendika.com> | 2010-11-15 21:22:22 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2010-11-15 21:22:22 -0800 |
commit | 21c18cedc7638142a55cf9076e98db0c2f8707d3 (patch) | |
tree | ba80aa2813266c547f133dc026c815718b60e3f3 | |
parent | 5d474177113f563c5c4d299485e0edb27d061f8a (diff) | |
download | volse-hubzilla-21c18cedc7638142a55cf9076e98db0c2f8707d3.tar.gz volse-hubzilla-21c18cedc7638142a55cf9076e98db0c2f8707d3.tar.bz2 volse-hubzilla-21c18cedc7638142a55cf9076e98db0c2f8707d3.zip |
isolate translateable files
-rw-r--r-- | boot.php | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); }} |