From dd628faaded8e6feb990c2eb76cc15460e7a631f Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Sat, 16 Mar 2013 16:08:19 +0100 Subject: Amélioration design formulaires (boutons collés) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/feedController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/controllers/feedController.php') diff --git a/app/controllers/feedController.php b/app/controllers/feedController.php index 585405ee7..48fcdf8cb 100755 --- a/app/controllers/feedController.php +++ b/app/controllers/feedController.php @@ -10,6 +10,7 @@ class feedController extends ActionController { } else { if (Request::isPost ()) { $url = Request::param ('url_rss'); + $params = array (); try { $feed = new Feed ($url); @@ -51,6 +52,7 @@ class feedController extends ActionController { 'content' => 'Le flux ' . $feed->url () . ' a bien été ajouté' ); Session::_param ('notification', $notif); + $params['id'] = $feed->id (); } catch (FileNotExistException $e) { Log::record ($e->getMessage (), Log::ERROR); // notif @@ -68,7 +70,7 @@ class feedController extends ActionController { Session::_param ('notification', $notif); } - Request::forward (array (), true); + Request::forward (array ('c' => 'configure', 'a' => 'feed', 'params' => $params), true); } } } -- cgit v1.2.3