aboutsummaryrefslogtreecommitdiffstats
path: root/settings/personal.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2011-09-26 21:10:56 +0200
committerBart Visscher <bartv@thisnet.nl>2011-09-26 21:17:26 +0200
commitf14930389505eda61ec4cbcdf59a54e63513802b (patch)
treed7ed274e9e95963682b13760b857e6575911b901 /settings/personal.php
parent950d4e1da498b7c928b5f6e1cbcca8e57ddecb0c (diff)
downloadnextcloud-server-f14930389505eda61ec4cbcdf59a54e63513802b.tar.gz
nextcloud-server-f14930389505eda61ec4cbcdf59a54e63513802b.zip
Add email field to personal preferences
Diffstat (limited to 'settings/personal.php')
-rw-r--r--settings/personal.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/settings/personal.php b/settings/personal.php
index 05dbda473ac..687b1a7aa34 100644
--- a/settings/personal.php
+++ b/settings/personal.php
@@ -19,6 +19,8 @@ $free=OC_Filesystem::free_space();
$total=$free+$used;
$relative=round(($used/$total)*10000)/100;
+$email=OC_Preferences::getValue(OC_User::getUser(), 'settings','email','');
+
$lang=OC_Preferences::getValue( OC_User::getUser(), 'core', 'lang', 'en' );
$languageCodes=OC_L10N::findAvailableLanguages();
//put the current language in the front
@@ -35,6 +37,7 @@ $tmpl = new OC_Template( "settings", "personal", "user");
$tmpl->assign('usage',OC_Helper::humanFileSize($used));
$tmpl->assign('total_space',OC_Helper::humanFileSize($total));
$tmpl->assign('usage_relative',$relative);
+$tmpl->assign('email',$email);
$tmpl->assign('languages',$languages);
$forms=OC_App::getForms('personal');