Skip to content

Commit

Permalink
MissingWiki: let databases.json auto generate if missing (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
Universal-Omega committed Sep 19, 2024
1 parent 35ed97b commit 3618125
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion MissingWiki.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@
EOF;
header( 'Content-length: ' . strlen( $output ) );
echo $output;
die( 1 );

if ( file_exists( '/srv/mediawiki/cache/databases.json' ) ) {
die( 1 );
}
} else {
// $wgDBname will always be set to a string, even if the --wiki parameter was not passed to a script.
echo "The wiki database '{$wgDBname}' was not found." . PHP_EOL;
Expand Down

0 comments on commit 3618125

Please sign in to comment.