Skip to content

Commit

Permalink
Try and fix no DB selected on 1.41
Browse files Browse the repository at this point in the history
  • Loading branch information
Universal-Omega authored Dec 12, 2023
1 parent defb34e commit e38a62f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions includes/Hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ public function onSetupAfterCache() {
global $wgGroupPermissions;

$dbName = $this->config->get( 'DBname' );
if ( !$dbName ) {
return;
}

$cWJ = new CreateWikiJson( $dbName, $this->hookRunner );
$cWJ->update();
Expand Down

0 comments on commit e38a62f

Please sign in to comment.