Filtre auto d'un flux lorsqu'on vient de l'actualiser seulement lui

pull/136/head
Marien Fressinaud 12 years ago
parent 650a04458a
commit 9b8fab7b80
  1. 4
      app/controllers/feedController.php

@ -139,12 +139,14 @@ class feedController extends ActionController {
$entryDAO->cleanOldEntries ($nb_month_old); $entryDAO->cleanOldEntries ($nb_month_old);
// notif // notif
$url = array ();
if ($i == 1) { if ($i == 1) {
$feed = reset ($feeds); $feed = reset ($feeds);
$notif = array ( $notif = array (
'type' => 'good', 'type' => 'good',
'content' => '<em>' . $feed->name () . '</em> a été mis à jour' 'content' => '<em>' . $feed->name () . '</em> a été mis à jour'
); );
$url['params'] = array ('get' => 'f_' . $feed->id ());
} elseif ($i > 0) { } elseif ($i > 0) {
$notif = array ( $notif = array (
'type' => 'good', 'type' => 'good',
@ -159,7 +161,7 @@ class feedController extends ActionController {
if (Request::param ('ajax', 0) == 0) { if (Request::param ('ajax', 0) == 0) {
Session::_param ('notification', $notif); Session::_param ('notification', $notif);
Request::forward (array (), true); Request::forward ($url, true);
} else { } else {
$notif = array ( $notif = array (
'type' => 'good', 'type' => 'good',

Loading…
Cancel
Save