aboutsummaryrefslogtreecommitdiff
path: root/app/models/Feed.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-11-17 15:24:30 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-11-17 15:24:30 +0100
commit9ec13c6c32ad0f8fb50f100e6ae127abe1535ccc (patch)
tree255cfb5995b67df7edd5fa541bebe3905be44715 /app/models/Feed.php
parent53505964412fc05d5bbd11b0707b4700634c8f9f (diff)
Début de multi-utilisateurs
Préparation de https://github.com/marienfressinaud/FreshRSS/issues/126 Suite de https://github.com/marienfressinaud/FreshRSS/issues/248 Nécessite un script de mise à jour https://github.com/marienfressinaud/FreshRSS/issues/255 Install.php n'est pas encore testé https://github.com/marienfressinaud/FreshRSS/issues/273
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 adc8e1677..549603664 100644
--- a/app/models/Feed.php
+++ b/app/models/Feed.php
@@ -530,12 +530,12 @@ class FeedDAO extends Model_pdo {
return $res[0]['count'];
}
public function updateCachedValues () { //For one single feed, call updateLastUpdate($id)
- $sql = 'UPDATE freshrss_feed f '
+ $sql = 'UPDATE ' . $this->prefix . 'feed f '
. 'INNER JOIN ('
. 'SELECT e.id_feed, '
. 'COUNT(CASE WHEN e.is_read = 0 THEN 1 END) AS nbUnreads, '
. 'COUNT(e.id) AS nbEntries '
- . 'FROM freshrss_entry e '
+ . 'FROM ' . $this->prefix . 'entry e '
. 'GROUP BY e.id_feed'
. ') x ON x.id_feed=f.id '
. 'SET f.cache_nbEntries=x.nbEntries, f.cache_nbUnreads=x.nbUnreads';