isolate translateable files
This commit is contained in:
parent
5d47417711
commit
21c18cedc7
1 changed files with 3 additions and 1 deletions
4
boot.php
4
boot.php
|
@ -1295,7 +1295,9 @@ function load_view_file($s) {
|
||||||
$b = basename($s);
|
$b = basename($s);
|
||||||
$d = dirname($s);
|
$d = dirname($s);
|
||||||
$lang = get_config('system','language');
|
$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("$d/$lang/$b");
|
||||||
return file_get_contents($s);
|
return file_get_contents($s);
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Reference in a new issue