diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2012-09-04 13:16:24 +0400 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2012-09-04 13:16:24 +0400 |
commit | dc2648b14cfffcb3da944bfca6a81d42217d790e (patch) | |
tree | 1d83f8026c84f042ba846639cdf1adb2640f60f4 /settings/personal.php | |
parent | 0fe0bd86b8e3e8cd5decf642d45c86be87e9cb7b (diff) |
Update settings/personal.php
respect coding style
Diffstat (limited to 'settings/personal.php')
-rw-r--r-- | settings/personal.php | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/settings/personal.php b/settings/personal.php index 82626526d57..7683c8e9109 100644 --- a/settings/personal.php +++ b/settings/personal.php @@ -5,7 +5,7 @@ * See the COPYING-README file. */ -require_once('../lib/base.php'); +require_once '../lib/base.php'; OC_Util::checkLoggedIn(); // Highlight navigation entry @@ -29,21 +29,21 @@ $total=$free+$used; if($total==0) $total=1; // prevent division by zero $relative=round(($used/$total)*10000)/100; -$email=OC_Preferences::getValue(OC_User::getUser(), 'settings','email',''); +$email=OC_Preferences::getValue(OC_User::getUser(), 'settings', 'email', ''); $lang=OC_Preferences::getValue( OC_User::getUser(), 'core', 'lang', OC_L10N::findLanguage() ); $languageCodes=OC_L10N::findAvailableLanguages(); sort ($languageCodes); //put the current language in the front -unset($languageCodes[array_search($lang,$languageCodes)]); +unset($languageCodes[array_search($lang, $languageCodes)]); array_unshift($languageCodes,$lang); $languageNames=include 'languageCodes.php'; $languages=array(); foreach($languageCodes as $lang){ $l=OC_L10N::get('settings',$lang); - if(substr($l->t('__language_name__'),0,1)!='_'){//first check if the language name is in the translation file + if(substr($l->t('__language_name__'), 0, 1)!='_') {//first check if the language name is in the translation file $languages[]=array('code'=>$lang,'name'=>$l->t('__language_name__')); }elseif(isset($languageNames[$lang])){ $languages[]=array('code'=>$lang,'name'=>$languageNames[$lang]); @@ -54,15 +54,15 @@ foreach($languageCodes as $lang){ // Return template $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); +$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'); -$tmpl->assign('forms',array()); +$tmpl->assign('forms', array()); foreach($forms as $form){ - $tmpl->append('forms',$form); + $tmpl->append('forms', $form); } $tmpl->printPage(); |