Add DatabaseBase::classFromType() to reduce the 'Database' . $type duplication
[lhc/web/wiklou.git] / includes / extauth / MediaWiki.php
index a069021..7480a6e 100644 (file)
@@ -72,7 +72,7 @@ class ExternalUser_MediaWiki extends ExternalUser {
        private function initFromCond( $cond ) {
                global $wgExternalAuthConf;
 
-               $class = 'Database' . $wgExternalAuthConf['DBtype'];
+               $class = DatabaseBase::classFromType( $wgExternalAuthConf['DBtype'] )
                $this->mDb = new $class(
                        $wgExternalAuthConf['DBserver'],
                        $wgExternalAuthConf['DBuser'],