summaryrefslogtreecommitdiffstats
path: root/settings/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'settings/index.php')
-rw-r--r--settings/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/index.php b/settings/index.php
index e2a73a5d9f3..07adba142d6 100644
--- a/settings/index.php
+++ b/settings/index.php
@@ -18,7 +18,7 @@ $free=OC_FILESYSTEM::free_space();
$total=$free+$used;
$relative=round(($used/$total)*100);
-$lang=OC_PREFERENCES::getValue( $_SESSION['user_id'], 'core', 'lang', 'en' );
+$lang=OC_PREFERENCES::getValue( OC_USER::getUser(), 'core', 'lang', 'en' );
$languages=OC_L10N::findAvailableLanguages();
//put the current language in the front
unset($languages[array_search($lang,$languages)]);