aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/boot.php b/boot.php
index c90d05130..f0d40544f 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);
}}