aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-03-21 03:33:58 -0700
committerFriendika <info@friendika.com>2011-03-21 03:33:58 -0700
commit82bd1ce3cb0097ad6be9650e4a1414e819cf8b0c (patch)
tree17c84eafca795321bd72fbe8c6055959aa53a1dd /boot.php
parent798c83b6aa3887622299ec4071c0d817953f3db9 (diff)
downloadvolse-hubzilla-82bd1ce3cb0097ad6be9650e4a1414e819cf8b0c.tar.gz
volse-hubzilla-82bd1ce3cb0097ad6be9650e4a1414e819cf8b0c.tar.bz2
volse-hubzilla-82bd1ce3cb0097ad6be9650e4a1414e819cf8b0c.zip
installation issues
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/boot.php b/boot.php
index 81794af91..6c8fb9d15 100644
--- a/boot.php
+++ b/boot.php
@@ -1862,11 +1862,11 @@ function format_like($cnt,$arr,$type,$id) {
if(! function_exists('load_view_file')) {
function load_view_file($s) {
+ global $lang;
+ if(! isset($lang))
+ $lang = 'en';
$b = basename($s);
$d = dirname($s);
- $lang = get_config('system','language');
- if($lang === false)
- $lang = 'en';
if(file_exists("$d/$lang/$b"))
return file_get_contents("$d/$lang/$b");
return file_get_contents($s);