From 76523693592a58c7b15c2860ad95133f551d86a5 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Mon, 5 Oct 2020 19:03:33 +0200 Subject: Minz: Attach a notification to a request (#3208) * Minz: Attach a notification to a request Notifications should be attached to a request, not to a global session. Fix https://github.com/FreshRSS/FreshRSS/pull/3096#issuecomment-654891906 Prepare https://github.com/FreshRSS/FreshRSS/pull/3096 * Rename array * Avoid string constants Implement https://github.com/FreshRSS/FreshRSS/pull/3208#issuecomment-703243863 * Improved logic * Simplify storage https://github.com/FreshRSS/FreshRSS/pull/3208#discussion_r499511213 * Fix notification bug in configuration/system --- app/Controllers/configureController.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'app/Controllers/configureController.php') diff --git a/app/Controllers/configureController.php b/app/Controllers/configureController.php index 78b939a91..f0e636eef 100755 --- a/app/Controllers/configureController.php +++ b/app/Controllers/configureController.php @@ -374,10 +374,7 @@ class FreshRSS_configure_Controller extends Minz_ActionController { invalidateHttpCache(); - Minz_Session::_param('notification', array( - 'type' => 'good', - 'content' => _t('feedback.conf.updated') - )); + Minz_Request::good(_t('feedback.conf.updated'), [ 'c' => 'configure', 'a' => 'system' ]); } } } -- cgit v1.2.3