diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-01-15 10:04:41 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-01-26 14:02:30 +0100 |
commit | 6aec550d6efb1cb50f6404bf72eb78ea37f36266 (patch) | |
tree | ec61ca3cc962acd8081323cd419dd97921c615f4 /settings/ajax | |
parent | 3da78c8f1c9355a726f289e834fa237366c3df20 (diff) | |
download | nextcloud-server-6aec550d6efb1cb50f6404bf72eb78ea37f36266.tar.gz nextcloud-server-6aec550d6efb1cb50f6404bf72eb78ea37f36266.zip |
Move findAvailableLanguages() to the factory
Diffstat (limited to 'settings/ajax')
-rw-r--r-- | settings/ajax/setlanguage.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/ajax/setlanguage.php b/settings/ajax/setlanguage.php index 760d2ca5d7d..537a5afe958 100644 --- a/settings/ajax/setlanguage.php +++ b/settings/ajax/setlanguage.php @@ -31,7 +31,7 @@ OCP\JSON::callCheck(); // Get data if( isset( $_POST['lang'] ) ) { - $languageCodes=OC_L10N::findAvailableLanguages(); + $languageCodes = \OC::$server->getL10NFactory()->findAvailableLanguages(); $lang = (string)$_POST['lang']; if(array_search($lang, $languageCodes) or $lang === 'en') { \OC::$server->getConfig()->setUserValue( OC_User::getUser(), 'core', 'lang', $lang ); |