aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/userController.php
diff options
context:
space:
mode:
authorGravatar Alexis Degrugillier <github@ainw.org> 2019-12-07 11:55:12 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2019-12-07 12:57:52 +0100
commitd13a8a0eb1c37c6b241bcea3d0123e8fa6bd8f5a (patch)
tree411cfc4adee0786018492850d64f3f0257d2125d /app/Controllers/userController.php
parentecd00854bef9d99ed78d4a20b71d4eb5951cc9a6 (diff)
Add user language display
When managing users, I've added the language they selected to be able to communicate with them with the selected language (if I know it). It could be useful when managing a community or a paid service.
Diffstat (limited to 'app/Controllers/userController.php')
-rw-r--r--app/Controllers/userController.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/Controllers/userController.php b/app/Controllers/userController.php
index 3a48e65e3..7d3c010c4 100644
--- a/app/Controllers/userController.php
+++ b/app/Controllers/userController.php
@@ -535,10 +535,14 @@ class FreshRSS_user_Controller extends Minz_ActionController {
$entryDAO = FreshRSS_Factory::createEntryDao($username);
$databaseDAO = FreshRSS_Factory::createDatabaseDAO($username);
+ $userConfiguration = get_user_configuration($username);
+
return array(
'feed_count' => $feedDAO->count(),
'article_count' => $entryDAO->count(),
'database_size' => $databaseDAO->size(),
+ 'language' => $userConfiguration->language,
+ 'mail_login' => $userConfiguration->mail_login,
);
}
}