mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SpamBlacklist
synced 2024-11-23 22:54:57 +00:00
Merge "Take LogicException into consideration"
This commit is contained in:
commit
24a757cab4
|
@ -43,7 +43,7 @@ class SpamBlacklistHooks implements
|
|||
// Try getting the update directly
|
||||
$updater = $context->getWikiPage()->getCurrentUpdate();
|
||||
$pout = $updater->getParserOutputForMetaData();
|
||||
} catch ( PreconditionException $exception ) {
|
||||
} catch ( PreconditionException | LogicException $exception ) {
|
||||
$services = MediaWikiServices::getInstance();
|
||||
$stashedEdit = $services->getPageEditStash()->checkCache(
|
||||
$title,
|
||||
|
|
Loading…
Reference in a new issue