From 9b8fab7b80052cc3bb11f860ad3efd85ad8950cd Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Sat, 13 Apr 2013 16:13:44 +0200 Subject: [PATCH] Filtre auto d'un flux lorsqu'on vient de l'actualiser seulement lui --- app/controllers/feedController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/controllers/feedController.php b/app/controllers/feedController.php index 73921e215..fb0f790fd 100755 --- a/app/controllers/feedController.php +++ b/app/controllers/feedController.php @@ -139,12 +139,14 @@ class feedController extends ActionController { $entryDAO->cleanOldEntries ($nb_month_old); // notif + $url = array (); if ($i == 1) { $feed = reset ($feeds); $notif = array ( 'type' => 'good', 'content' => '' . $feed->name () . ' a été mis à jour' ); + $url['params'] = array ('get' => 'f_' . $feed->id ()); } elseif ($i > 0) { $notif = array ( 'type' => 'good', @@ -159,7 +161,7 @@ class feedController extends ActionController { if (Request::param ('ajax', 0) == 0) { Session::_param ('notification', $notif); - Request::forward (array (), true); + Request::forward ($url, true); } else { $notif = array ( 'type' => 'good',