Skip to content

Commit

Permalink
Set CreateWiki virtual domain in setDatabase (#5745)
Browse files Browse the repository at this point in the history
  • Loading branch information
Universal-Omega authored Nov 19, 2024
1 parent dc006b0 commit c9ae1e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion initialise/MirahezeFunctions.php
Original file line number Diff line number Diff line change
Expand Up @@ -357,12 +357,15 @@ public function getIncidentsDatabase(): string {
}

public function setDatabase() {
global $wgConf, $wgDBname, $wgCreateWikiDatabase;
global $wgConf, $wgDBname, $wgCreateWikiDatabase, $wgVirtualDomainsMapping;

$wgConf->settings['wgDBname'][$this->dbname] = $this->dbname;
$wgDBname = $this->dbname;

$wgCreateWikiDatabase = $this->getGlobalDatabase();
$wgVirtualDomainsMapping['virtual-createwiki'] = [
'db' => $this->getGlobalDatabase(),
];
}

/**
Expand Down

0 comments on commit c9ae1e0

Please sign in to comment.