fix: Added rest response to the importFeeds method

pull/1856/head
iglocska 2016-12-31 09:13:34 +01:00
parent 76e9398df9
commit 12b904da13
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ class FeedsController extends AppController {
$message .= ' ' . $fail . ' feeds could not be added (possibly because they already exist)';
}
if ($this->_isRest()) {
return $this->RestResponse->saveSuccessResponse('Feed', 'importFeeds', false, $this->response->type(), $message);
} else {
$this->Session->setFlash($message);
$this->redirect(array('controller' => 'Feeds', 'action' => 'index', 'all'));