From d9022f63880ce039446fba8364f68e656b7bf4cb Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 3 May 2012 13:01:35 +0200 Subject: Update to MediaWiki 1.19.0 --- includes/extauth/vB.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'includes/extauth') diff --git a/includes/extauth/vB.php b/includes/extauth/vB.php index f516c423..0565a2e3 100644 --- a/includes/extauth/vB.php +++ b/includes/extauth/vB.php @@ -103,13 +103,14 @@ class ExternalUser_vB extends ExternalUser { private function getDb() { global $wgExternalAuthConf; - return new Database( - $wgExternalAuthConf['server'], - $wgExternalAuthConf['username'], - $wgExternalAuthConf['password'], - $wgExternalAuthConf['dbname'], - 0, - $wgExternalAuthConf['tablePrefix'] + return DatabaseBase::factory( 'mysql', + array( + 'host' => $wgExternalAuthConf['server'], + 'user' => $wgExternalAuthConf['username'], + 'password' => $wgExternalAuthConf['password'], + 'dbname' => $wgExternalAuthConf['dbname'], + 'tablePrefix' => $wgExternalAuthConf['tablePrefix'], + ) ); } -- cgit v1.2.2