aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mediawiki/files
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mediawiki/files')
-rw-r--r--modules/mediawiki/files/init_wiki.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/modules/mediawiki/files/init_wiki.php b/modules/mediawiki/files/init_wiki.php
index a0e3a520..5bc001e9 100644
--- a/modules/mediawiki/files/init_wiki.php
+++ b/modules/mediawiki/files/init_wiki.php
@@ -15,12 +15,10 @@ require_once("$mw_root/includes/GlobalFunctions.php");
include("$wiki_root/LocalSettings.php");
$dbclass = 'Database'.ucfirst($wgDBtype);
-$dbc = new $dbclass;
-
-$wgDatabase = $dbc->newFromParams($wgDBserver,
- $wgDBuser,
- $wgDBpassword, $wgDBname, 1);
-
+$dbc = new $dbclass($wgDBserver,
+ $wgDBuser,
+ $wgDBpassword, $wgDBname, 1);
+
$wgDatabase->initial_setup($wgDBpassword, $wgDBname);
$wgDatabase->setup_database();