} elseif( $conf->DBtype == 'ibm_db2' ) {
$dbsettings =
"# DB2 specific settings
-\$wgDBport_db2 = \"{$slconf['DBport_db2']}\";
+\$wgDBport = \"{$slconf['DBport_db2']}\";
\$wgDBmwschema = \"{$slconf['DBdb2schema']}\";
\$wgDBcataloged = \"{$slconf['DBcataloged']}\";";
} elseif( $conf->DBtype == 'oracle' ) {
public function open( $server, $user, $password, $dbName )
{
// Load the port number
- global $wgDBport_db2, $wgDBcataloged;
+ global $wgDBport, $wgDBcataloged;
wfProfileIn( __METHOD__ );
// Load IBM DB2 driver if missing
$this->close();
// Cache conn info
$this->mServer = $server;
- $this->mPort = $port = $wgDBport_db2;
+ $this->mPort = $port = $wgDBport;
$this->mUser = $user;
$this->mPassword = $password;
$this->mDBname = $dbName;