aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Feed.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-07-03 22:48:29 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2014-07-03 22:48:29 +0200
commitb34f59e85aa851b82210fdc50074918034f960db (patch)
treeab7dcdb13d84454c8a6848a8ea91f293f4d3a1d7 /app/Models/Feed.php
parent2501bb337e75c41f97570f25775e20131faf2f2a (diff)
Preparation #3 for SQLite
https://github.com/marienfressinaud/FreshRSS/issues/100
Diffstat (limited to 'app/Models/Feed.php')
-rw-r--r--app/Models/Feed.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Models/Feed.php b/app/Models/Feed.php
index ba142c8c8..8093b2bfd 100644
--- a/app/Models/Feed.php
+++ b/app/Models/Feed.php
@@ -87,7 +87,7 @@ class FreshRSS_Feed extends Minz_Model {
}
public function nbEntries () {
if ($this->nbEntries < 0) {
- $feedDAO = new FreshRSS_FeedDAO ();
+ $feedDAO = FreshRSS_Factory::createFeedDao();
$this->nbEntries = $feedDAO->countEntries ($this->id ());
}
@@ -95,7 +95,7 @@ class FreshRSS_Feed extends Minz_Model {
}
public function nbNotRead () {
if ($this->nbNotRead < 0) {
- $feedDAO = new FreshRSS_FeedDAO ();
+ $feedDAO = FreshRSS_Factory::createFeedDao();
$this->nbNotRead = $feedDAO->countNotRead ($this->id ());
}