From d13a8a0eb1c37c6b241bcea3d0123e8fa6bd8f5a Mon Sep 17 00:00:00 2001 From: Alexis Degrugillier Date: Sat, 7 Dec 2019 11:55:12 +0100 Subject: 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. --- app/Controllers/userController.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/Controllers') 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, ); } } -- cgit v1.2.3