summaryrefslogtreecommitdiffstats
path: root/controller/feedcontroller.php
diff options
context:
space:
mode:
Diffstat (limited to 'controller/feedcontroller.php')
-rw-r--r--controller/feedcontroller.php13
1 files changed, 8 insertions, 5 deletions
diff --git a/controller/feedcontroller.php b/controller/feedcontroller.php
index 69b713914..762859627 100644
--- a/controller/feedcontroller.php
+++ b/controller/feedcontroller.php
@@ -227,18 +227,21 @@ class FeedController extends Controller {
* @IsSubAdminExemption
* @Ajax
*/
- public function importGoogleReader() {
+ public function importArticles() {
$json = $this->params('json');
$userId = $this->api->getUserId();
- $feed = $this->feedBusinessLayer->importGoogleReaderJSON($json, $userId);
+ $feed = $this->feedBusinessLayer->importArticles($json, $userId);
+
+ $params = array();
+ if($feed) {
+ $params['feeds'] = array($feed);
+ }
- $params = array(
- 'feeds' => array($feed)
- );
return $this->renderJSON($params);
}
+
/**
* @IsAdminExemption
* @IsSubAdminExemption