aboutsummaryrefslogtreecommitdiff
path: root/lib/minz/dao/Model_pdo.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 /lib/minz/dao/Model_pdo.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 'lib/minz/dao/Model_pdo.php')
-rwxr-xr-xlib/minz/dao/Model_pdo.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/minz/dao/Model_pdo.php b/lib/minz/dao/Model_pdo.php
index beeb65ea8..810e69847 100755
--- a/lib/minz/dao/Model_pdo.php
+++ b/lib/minz/dao/Model_pdo.php
@@ -60,7 +60,8 @@ class Model_pdo {
);
self::$sharedBd = $this->bd;
- $this->prefix = $db['prefix'];
+ $userPrefix = Configuration::currentUser ();
+ $this->prefix = $db['prefix'] . (empty($userPrefix) ? '' : ($userPrefix . '_'));
self::$sharedPrefix = $this->prefix;
} catch (Exception $e) {
throw new PDOConnectionException (