aboutsummaryrefslogtreecommitdiff
path: root/app/FreshRSS.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2020-10-05 19:03:33 +0200
committerGravatar GitHub <noreply@github.com> 2020-10-05 19:03:33 +0200
commit76523693592a58c7b15c2860ad95133f551d86a5 (patch)
treea0fc3605396921dbbb225b2ec04559a014d6f156 /app/FreshRSS.php
parent2f88b267805c71e9859c41bb50c348b1566cfc06 (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/FreshRSS.php')
-rw-r--r--app/FreshRSS.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/FreshRSS.php b/app/FreshRSS.php
index ee454d7fd..e4cc3936c 100644
--- a/app/FreshRSS.php
+++ b/app/FreshRSS.php
@@ -125,10 +125,9 @@ class FreshRSS extends Minz_FrontController {
}
private static function loadNotifications() {
- $notif = Minz_Session::param('notification');
+ $notif = Minz_Request::getNotification();
if ($notif) {
Minz_View::_param('notification', $notif);
- Minz_Session::_param('notification');
}
}