diff options
| author | 2020-10-05 19:03:33 +0200 | |
|---|---|---|
| committer | 2020-10-05 19:03:33 +0200 | |
| commit | 76523693592a58c7b15c2860ad95133f551d86a5 (patch) | |
| tree | a0fc3605396921dbbb225b2ec04559a014d6f156 /app/Controllers/configureController.php | |
| parent | 2f88b267805c71e9859c41bb50c348b1566cfc06 (diff) | |
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
Diffstat (limited to 'app/Controllers/configureController.php')
| -rwxr-xr-x | app/Controllers/configureController.php | 5 |
1 files changed, 1 insertions, 4 deletions
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' ]); } } } |
