## SQLite specific
$conf->SQLiteDataDir = importPost( "SQLiteDataDir", "" );
+
+ ## MSSQL specific
+ // We need a second field so it doesn't overwrite the MySQL one
+ $conf->DBprefix2 = importPost( "DBprefix2" );
+
/* Check for validity */
$errs = array();
$wgDBmwschema = $conf->DBmwschema;
$wgDBts2schema = $conf->DBts2schema;
+ if( $conf->DBprefix2 != '' ) {
+ // For MSSQL
+ $wgDBprefix = $conf->DBprefix2;
+ }
+
$wgCommandLineMode = true;
if (! defined ( 'STDERR' ) )
define( 'STDERR', fopen("php://stderr", "wb"));
<?php database_switcher('mssql'); ?>
<div class="config-input"><?php
- aField( $conf, "DBprefix", "Database table prefix:" );
+ aField( $conf, "DBprefix2", "Database table prefix:" );
?></div>
<div class="config-desc">
<p>If you need to share one database between multiple wikis, or
$dbsettings =
"# SQLite-specific settings
\$wgSQLiteDataDir = \"{$slconf['SQLiteDataDir']}\";";
+ } elseif( $conf->DBtype == 'mssql' ) {
+ $dbsettings =
+"# MSSQL specific settings
+\$wgDBprefix = \"{$slconf['DBprefix2']}\";";
} else {
// ummm... :D
$dbsettings = '';