summaryrefslogtreecommitdiffstats
path: root/controller/usersettingscontroller.php
diff options
context:
space:
mode:
Diffstat (limited to 'controller/usersettingscontroller.php')
-rw-r--r--controller/usersettingscontroller.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/controller/usersettingscontroller.php b/controller/usersettingscontroller.php
index 88f3d07f4..4cb088255 100644
--- a/controller/usersettingscontroller.php
+++ b/controller/usersettingscontroller.php
@@ -77,4 +77,20 @@ class UserSettingsController extends Controller {
}
+ /**
+ * @IsAdminExemption
+ * @IsSubAdminExemption
+ * @Ajax
+ */
+ public function getLanguage(){
+ $language = $this->api->getTrans()->findLanguage();
+
+ $params = array(
+ 'language' => $language
+ );
+ return $this->renderJSON($params);
+ }
+
+
+
} \ No newline at end of file