diff options
| author | 2014-10-02 19:49:49 +0200 | |
|---|---|---|
| committer | 2014-10-02 19:49:49 +0200 | |
| commit | 43c1183c93d149f74dbb02887cfb0ca86c71fed8 (patch) | |
| tree | 530e926a456b07a869a0ea7a15616623c67b5d95 /app/Controllers | |
| parent | 9b2ad32e98e4720d5ee422fccd3069f086ee8563 (diff) | |
| parent | ce43b1761b810c89e5e8660e8ae2638e97ca6339 (diff) | |
Merge branch '646-new-cat-system' into dev
Diffstat (limited to 'app/Controllers')
| -rwxr-xr-x | app/Controllers/feedController.php | 20 | ||||
| -rw-r--r-- | app/Controllers/subscriptionController.php | 2 |
2 files changed, 22 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'); diff --git a/app/Controllers/subscriptionController.php b/app/Controllers/subscriptionController.php index aabae7b8f..7cc8179a0 100644 --- a/app/Controllers/subscriptionController.php +++ b/app/Controllers/subscriptionController.php @@ -30,6 +30,8 @@ class FreshRSS_subscription_Controller extends Minz_ActionController { * It displays categories and associated feeds. */ public function indexAction() { + Minz_View::appendScript(Minz_Url::display('/scripts/category.js?' . + @filemtime(PUBLIC_PATH . '/scripts/category.js'))); Minz_View::prependTitle(_t('subscription_management') . ' ยท '); $id = Minz_Request::param('id'); |
