diff options
| author | 2023-12-22 11:03:32 +0100 | |
|---|---|---|
| committer | 2023-12-22 11:03:32 +0100 | |
| commit | c7a3281a73839590bfa9d8a9e73c41fc35fc2847 (patch) | |
| tree | 14064171417219063004c232d3e63a7a777b7335 /app/layout/layout.phtml | |
| parent | bd9e33a25cfc16125c1484656ff1b4cd7c3991d7 (diff) | |
Fix notifications (#5959)
The notification about wrong login was not working. Noticed while working on https://github.com/FreshRSS/FreshRSS/pull/5955
This was due to timing of when the notification is retrieved.
Simplified code to make the logic easier and more robust.
Diffstat (limited to 'app/layout/layout.phtml')
| -rw-r--r-- | app/layout/layout.phtml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/layout/layout.phtml b/app/layout/layout.phtml index adbd52327..ba6dc4a96 100644 --- a/app/layout/layout.phtml +++ b/app/layout/layout.phtml @@ -77,10 +77,10 @@ if (_t('gen.dir') === 'rtl') { <?php $msg = ''; $status = 'closed'; - if (!empty($this->notification)) { - $msg = $this->notification['content']; - $status = $this->notification['type']; - + $notif = Minz_Request::getNotification(); + if (!empty($notif)) { + $msg = $notif['content']; + $status = $notif['type']; invalidateHttpCache(); } ?> |
