aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorNicolas Lécureuil <neoclust@mageia.org>2017-04-06 16:15:55 +0200
committerNicolas Lécureuil <neoclust@mageia.org>2017-04-06 16:15:55 +0200
commit6368fb4196a94bc54e8a98398c9ae76964ec8b4c (patch)
tree9a333e2430441759d49492c1f3bf4e592d325413 /modules
parentb210f1e47e2482719cdba10e222fc5e4c87a84b0 (diff)
downloadpuppet-6368fb4196a94bc54e8a98398c9ae76964ec8b4c.tar
puppet-6368fb4196a94bc54e8a98398c9ae76964ec8b4c.tar.gz
puppet-6368fb4196a94bc54e8a98398c9ae76964ec8b4c.tar.bz2
puppet-6368fb4196a94bc54e8a98398c9ae76964ec8b4c.tar.xz
puppet-6368fb4196a94bc54e8a98398c9ae76964ec8b4c.zip
Adapt to new mediawiki
Diffstat (limited to 'modules')
-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();