summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-04-13 16:13:44 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-04-13 16:13:44 +0200
commit9b8fab7b80052cc3bb11f860ad3efd85ad8950cd (patch)
tree2896922b06efb1b3fffca76316f1b8fcadda889d
parent650a04458a8733fb776f39bc7016444725b04dff (diff)
Filtre auto d'un flux lorsqu'on vient de l'actualiser seulement lui
-rwxr-xr-xapp/controllers/feedController.php4
1 files changed, 3 insertions, 1 deletions
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' => '<em>' . $feed->name () . '</em> 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',