Skip to content

Commit

Permalink
Don't show 'Not found wiki' error for jobs ran through the UI (#49)
Browse files Browse the repository at this point in the history
* Don't show 'Not found wiki' error for jobs ran through the UI

* Update DeletedWiki.php
  • Loading branch information
paladox authored Sep 30, 2024
1 parent 56a2a9a commit 31889ba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions DeletedWiki.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

global $wgDBname, $wgLocalDatabases, $wgCreateWikiUsePhpCache;

if ( defined( 'MEDIAWIKI_JOB_RUNNER' ) && in_array( $wgDBname, $wgLocalDatabases ?? [] ) ) {
// If job is ran through the UI then don't show a missing wiki error.
return;
}

if ( MW_ENTRY_POINT !== 'cli' ) {
require_once __DIR__ . '/getTranslations.php';

Expand Down

0 comments on commit 31889ba

Please sign in to comment.