diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2009-07-17 22:17:15 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2009-07-17 22:17:15 +0200 |
commit | 19ab7dde400794161bba4f8d92b9dabb06573f2a (patch) | |
tree | d7d0ba43e9597e35abda653181e558cd57e38c57 /extensions | |
parent | 5260ea4fce50f1426d9546efc2e8c3b0a62e642c (diff) |
use ll databsee instead of old current
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/LLAuthPlugin.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/extensions/LLAuthPlugin.php b/extensions/LLAuthPlugin.php index c790e4ea..53f98c05 100644 --- a/extensions/LLAuthPlugin.php +++ b/extensions/LLAuthPlugin.php @@ -23,7 +23,7 @@ public static function isValidPassword($password) { private function getUserData($username) { $dbr = wfGetDB( DB_SLAVE ); - $result = $dbr->safeQuery('SELECT id, name, email, realname FROM current.users WHERE name = ?', $username); + $result = $dbr->safeQuery('SELECT id, name, email, realname FROM ll.users WHERE name = ?', $username); $data = $result->fetchRow(); $result->free(); @@ -34,7 +34,7 @@ public function userExists( $username ) { $dbr = wfGetDB( DB_SLAVE ); try { - $result = $dbr->safeQuery('SELECT id FROM current.users WHERE name = ?', $username); + $result = $dbr->safeQuery('SELECT id FROM ll.users WHERE name = ?', $username); $exists = ($result->numRows() > 0 ? true : false); $result->free(); } catch (Exception $e) { @@ -48,7 +48,7 @@ public function authenticate( $username, $password ) { $dbr = wfGetDB( DB_SLAVE ); try { - $result = $dbr->safeQuery('SELECT id FROM current.users WHERE name = ? AND password = ?', $username, sha1($password)); + $result = $dbr->safeQuery('SELECT id FROM ll.users WHERE name = ? AND password = ?', $username, sha1($password)); $authenticated = ($result->numRows() > 0 ? true : false); $result->free(); } catch (Exception $e) { |