aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/feedController.php
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-10-02 19:49:49 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-10-02 19:49:49 +0200
commit43c1183c93d149f74dbb02887cfb0ca86c71fed8 (patch)
tree530e926a456b07a869a0ea7a15616623c67b5d95 /app/Controllers/feedController.php
parent9b2ad32e98e4720d5ee422fccd3069f086ee8563 (diff)
parentce43b1761b810c89e5e8660e8ae2638e97ca6339 (diff)
Merge branch '646-new-cat-system' into dev
Diffstat (limited to 'app/Controllers/feedController.php')
-rwxr-xr-xapp/Controllers/feedController.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/app/Controllers/feedController.php b/app/Controllers/feedController.php
index e4859b110..b2b53185e 100755
--- a/app/Controllers/feedController.php
+++ b/app/Controllers/feedController.php
@@ -378,6 +378,26 @@ class FreshRSS_feed_Controller extends Minz_ActionController {
}
}
+ public function moveAction() {
+ if (Minz_Request::isPost()) {
+ $feed_id = Minz_Request::param('f_id');
+ $cat_id = Minz_Request::param('c_id');
+
+ $feedDAO = FreshRSS_Factory::createFeedDao();
+
+ $values = array(
+ 'category' => $cat_id,
+ );
+
+ if (!$feedDAO->updateFeed($feed_id, $values)) {
+ Minz_Error::error(
+ 404,
+ array('error' => array(_t('error_occurred')))
+ );
+ }
+ }
+ }
+
public function deleteAction() {
if (Minz_Request::isPost()) {
$id = Minz_Request::param('id');