diff options
| author | 2013-11-17 15:24:30 +0100 | |
|---|---|---|
| committer | 2013-11-17 15:24:30 +0100 | |
| commit | 9ec13c6c32ad0f8fb50f100e6ae127abe1535ccc (patch) | |
| tree | 255cfb5995b67df7edd5fa541bebe3905be44715 /lib/minz/dao | |
| parent | 53505964412fc05d5bbd11b0707b4700634c8f9f (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')
| -rwxr-xr-x | lib/minz/dao/Model_pdo.php | 3 |
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 ( |
