aboutsummaryrefslogtreecommitdiff
path: root/app/models/Entry.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/Entry.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/Entry.php')
-rwxr-xr-xapp/models/Entry.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/models/Entry.php b/app/models/Entry.php
index 8b817cc14..c4856af8b 100755
--- a/app/models/Entry.php
+++ b/app/models/Entry.php
@@ -311,11 +311,11 @@ class EntryDAO extends Model_pdo {
$affected = $stm->rowCount();
if ($affected > 0) {
- $sql = 'UPDATE freshrss_feed f '
+ $sql = 'UPDATE ' . $this->prefix . 'feed f '
. 'LEFT OUTER JOIN ('
. 'SELECT e.id_feed, '
. 'COUNT(*) AS nbUnreads '
- . 'FROM freshrss_entry e '
+ . 'FROM ' . $this->prefix . 'entry e '
. 'WHERE e.is_read = 0 '
. 'GROUP BY e.id_feed'
. ') x ON x.id_feed=f.id '
@@ -364,11 +364,11 @@ class EntryDAO extends Model_pdo {
$affected = $stm->rowCount();
if ($affected > 0) {
- $sql = 'UPDATE freshrss_feed f '
+ $sql = 'UPDATE ' . $this->prefix . 'feed f '
. 'LEFT OUTER JOIN ('
. 'SELECT e.id_feed, '
. 'COUNT(*) AS nbUnreads '
- . 'FROM freshrss_entry e '
+ . 'FROM ' . $this->prefix . 'entry e '
. 'WHERE e.is_read = 0 '
. 'GROUP BY e.id_feed'
. ') x ON x.id_feed=f.id '