r91942: Add nosuchaction also if action not in
[lhc/web/wiklou.git] / includes / extauth / MediaWiki.php
index 84c8705..0a5efae 100644 (file)
@@ -89,13 +89,13 @@ class ExternalUser_MediaWiki extends ExternalUser {
        private function initFromCond( $cond ) {
                global $wgExternalAuthConf;
 
-               $this->mDb = DatabaseBase::newFromType( $wgExternalAuthConf['DBtype'],
+               $this->mDb = DatabaseBase::factory( $wgExternalAuthConf['DBtype'],
                        array(
                                'host'        => $wgExternalAuthConf['DBserver'],
                                'user'        => $wgExternalAuthConf['DBuser'],
                                'password'    => $wgExternalAuthConf['DBpassword'],
                                'dbname'      => $wgExternalAuthConf['DBname'],
-                               'tableprefix' => $wgExternalAuthConf['DBprefix'],
+                               'tablePrefix' => $wgExternalAuthConf['DBprefix'],
                        )
                );