aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/configureController.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controllers/configureController.php')
-rwxr-xr-xapp/Controllers/configureController.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/Controllers/configureController.php b/app/Controllers/configureController.php
index 89130cae4..a608df162 100755
--- a/app/Controllers/configureController.php
+++ b/app/Controllers/configureController.php
@@ -14,7 +14,7 @@ class FreshRSS_configure_Controller extends Minz_ActionController {
}
public function categorizeAction () {
- $feedDAO = new FreshRSS_FeedDAO ();
+ $feedDAO = FreshRSS_Factory::createFeedDao();
$catDAO = new FreshRSS_CategoryDAO ();
$defaultCategory = $catDAO->getDefault ();
$defaultId = $defaultCategory->id ();
@@ -70,7 +70,7 @@ class FreshRSS_configure_Controller extends Minz_ActionController {
$catDAO = new FreshRSS_CategoryDAO ();
$this->view->categories = $catDAO->listCategories (false);
- $feedDAO = new FreshRSS_FeedDAO ();
+ $feedDAO = FreshRSS_Factory::createFeedDao();
$this->view->feeds = $feedDAO->listFeeds ();
$id = Minz_Request::param ('id');
@@ -291,7 +291,7 @@ class FreshRSS_configure_Controller extends Minz_ActionController {
Minz_View::prependTitle(Minz_Translate::t('archiving_configuration') . ' ยท ');
- $entryDAO = new FreshRSS_EntryDAO();
+ $entryDAO = FreshRSS_Factory::createEntryDao();
$this->view->nb_total = $entryDAO->count();
$this->view->size_user = $entryDAO->size();
@@ -336,7 +336,7 @@ class FreshRSS_configure_Controller extends Minz_ActionController {
);
break;
case 'f':
- $dao = new FreshRSS_FeedDAO();
+ $dao = FreshRSS_Factory::createFeedDao();
$feed = $dao->searchById(substr($query['get'], 2));
$this->view->query_get[$key] = array(
'type' => 'feed',