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 /plugins/CoreHome/Controller.php
parent3068233a9bfde2fc0ae08e4f65c642fe0120d4d3 (diff)
refs #4179 handle persistent notifications
Diffstat (limited to 'plugins/CoreHome/Controller.php')
-rw-r--r--plugins/CoreHome/Controller.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/CoreHome/Controller.php b/plugins/CoreHome/Controller.php
index 15b0ba1ef1..27776f3512 100644
--- a/plugins/CoreHome/Controller.php
+++ b/plugins/CoreHome/Controller.php
@@ -25,6 +25,7 @@ use Piwik\Site;
use Piwik\UpdateCheck;
use Piwik\Url;
use Piwik\View;
+use Piwik\Notification\Manager as NotificationManager;
/**
*
@@ -69,6 +70,12 @@ class Controller extends \Piwik\Plugin\Controller
echo $view->render();
}
+ public function markNotificationAsRead()
+ {
+ $notificationId = Common::getRequestVar('notificationId');
+ NotificationManager::cancel($notificationId);
+ }
+
protected function getDefaultIndexView()
{
$view = new View('@CoreHome/getDefaultIndexView');