diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2012-09-04 12:54:36 +0300 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2012-09-04 12:54:36 +0300 |
commit | dafe28e079bd1458b19d6951401924651d622781 (patch) | |
tree | e8434c27cce06f7b03083c30cfd7bc997fc23916 /settings | |
parent | 93496a32cc3c28d36936d089857dd6fca870c0f8 (diff) | |
download | nextcloud-server-dafe28e079bd1458b19d6951401924651d622781.tar.gz nextcloud-server-dafe28e079bd1458b19d6951401924651d622781.zip |
Update settings/ajax/setlanguage.php
respect coding style
Diffstat (limited to 'settings')
-rw-r--r-- | settings/ajax/setlanguage.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/settings/ajax/setlanguage.php b/settings/ajax/setlanguage.php index 54b103cd4fe..42eea7a96fd 100644 --- a/settings/ajax/setlanguage.php +++ b/settings/ajax/setlanguage.php @@ -1,7 +1,7 @@ <?php // Init owncloud -require_once('../../lib/base.php'); +require_once '../../lib/base.php'; $l=OC_L10N::get('settings'); @@ -10,10 +10,10 @@ OCP\JSON::callCheck(); // Get data -if( isset( $_POST['lang'] ) ){ +if( isset( $_POST['lang'] ) ) { $languageCodes=OC_L10N::findAvailableLanguages(); $lang=$_POST['lang']; - if(array_search($lang,$languageCodes) or $lang=='en'){ + if(array_search($lang, $languageCodes) or $lang=='en') { OC_Preferences::setValue( OC_User::getUser(), 'core', 'lang', $lang ); OC_JSON::success(array("data" => array( "message" => $l->t("Language changed") ))); }else{ |