Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@gmail.com>2013-10-27 03:15:44 +0400
committerThomas Steur <thomas.steur@gmail.com>2013-10-27 03:15:44 +0400
commite793504a55ed49e31e9b78ca02f3de85d085ea51 (patch)
treef8a35bd21140c5f66e0a158d2f24eeb39bfc0fc7 /core/Notification
parent3068233a9bfde2fc0ae08e4f65c642fe0120d4d3 (diff)
refs #4179 handle persistent notifications
Diffstat (limited to 'core/Notification')
-rw-r--r--core/Notification/Manager.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/Notification/Manager.php b/core/Notification/Manager.php
index 62b245a389..dbde9bd7fd 100644
--- a/core/Notification/Manager.php
+++ b/core/Notification/Manager.php
@@ -33,7 +33,9 @@ class Manager
$session = static::getSession();
$session->$id = $notification;
- $session->setExpirationHops(1, $id);
+ if (Notification::TYPE_PERSISTENT != $notification->type) {
+ $session->setExpirationHops(1, $id);
+ }
}
public static function getAllNotificationsToDisplay()