mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SpamBlacklist
synced 2024-11-23 22:54:57 +00:00
Take LogicException into consideration
It can be caused by undo Bug: T299111 Change-Id: I94054648ddfe95b59668ad3f53ac864e0c5f6e30
This commit is contained in:
parent
3cb265f12e
commit
d353677bdf
|
@ -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