*
* @param $dbType String A possible DB type
* @param $p Array An array of options to pass to the constructor.
- * Valid options are: host, user, password, dbName, flags, tablePrefix
+ * Valid options are: host, user, password, dbname, flags, tablePrefix
* @return DatabaseBase subclass or null
*/
public final static function factory( $dbType, $p = array() ) {
isset( $p['host'] ) ? $p['host'] : false,
isset( $p['user'] ) ? $p['user'] : false,
isset( $p['password'] ) ? $p['password'] : false,
- isset( $p['dbName'] ) ? $p['dbName'] : false,
+ isset( $p['dbname'] ) ? $p['dbname'] : false,
isset( $p['flags'] ) ? $p['flags'] : 0,
isset( $p['tablePrefix'] ) ? $p['tablePrefix'] : 'get from global'
);
'host' => $wgExternalAuthConf['DBserver'],
'user' => $wgExternalAuthConf['DBuser'],
'password' => $wgExternalAuthConf['DBpassword'],
- 'dbName' => $wgExternalAuthConf['DBname'],
+ 'dbname' => $wgExternalAuthConf['DBname'],
'tablePrefix' => $wgExternalAuthConf['DBprefix'],
)
);
* 'server' => 'localhost',
* 'username' => 'forum',
* 'password' => 'udE,jSqDJ<""p=fI.K9',
- * 'dbName' => 'forum',
+ * 'dbname' => 'forum',
* 'tablePrefix' => '',
* 'cookieprefix' => 'bb'
* );
$wgExternalAuthConf['server'],
$wgExternalAuthConf['username'],
$wgExternalAuthConf['password'],
- $wgExternalAuthConf['dbName'],
+ $wgExternalAuthConf['dbname'],
0,
$wgExternalAuthConf['tablePrefix']
);
'host' => $this->dbServer,
'user' => $this->dbUser,
'password' => $this->dbPassword,
- 'dbName' => $this->dbName,
+ 'dbname' => $this->dbName,
'flags' => $this->dbFlags,
'tablePrefix' => $this->tablePrefix
)