aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2010-11-17 17:28:29 -0800
committerFriendika <info@friendika.com>2010-11-17 17:28:29 -0800
commit38eff190ea1ad6270015a6eaf424af8d12ffde58 (patch)
treefe43403715ecb515460e3369113afaee82f9571e
parent875b31fb8efb5fbd5e6682321ac6a6a055cd8e4d (diff)
downloadvolse-hubzilla-38eff190ea1ad6270015a6eaf424af8d12ffde58.tar.gz
volse-hubzilla-38eff190ea1ad6270015a6eaf424af8d12ffde58.tar.bz2
volse-hubzilla-38eff190ea1ad6270015a6eaf424af8d12ffde58.zip
missing advanced profile from yesterday i18n re-org
-rw-r--r--mod/profile.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/mod/profile.php b/mod/profile.php
index 240454017..38061e49d 100644
--- a/mod/profile.php
+++ b/mod/profile.php
@@ -138,9 +138,11 @@ function profile_content(&$a, $update = 0) {
if($tab === 'profile') {
- $lang = get_config('system','language');
- if($lang && file_exists("view/$lang/profile_advanced.php"))
- require_once("view/$lang/profile_advanced.php");
+ $profile_lang = get_config('system','language');
+ if(! $profile_lang)
+ $profile_lang = 'en';
+ if(file_exists("view/$profile_lang/profile_advanced.php"))
+ require_once("view/$profile_lang/profile_advanced.php");
else
require_once('view/profile_advanced.php');
return $o;