diff options
Diffstat (limited to 'settings/ajax/setlanguage.php')
-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{ |