X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fdeferred%2FWANCacheReapUpdate.php;h=cbeb1fc77c7be41528372a2f95252c8ddf6efe98;hb=d5a7166771613dfe4ed9fb75fa5efeced6134bd1;hp=b12af196555963e90c507a17a46b4cb8e602f8ac;hpb=142e89424ea9c4ee5b87ba8d8e78714bca18c75d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/deferred/WANCacheReapUpdate.php b/includes/deferred/WANCacheReapUpdate.php index b12af19655..cbeb1fc77c 100644 --- a/includes/deferred/WANCacheReapUpdate.php +++ b/includes/deferred/WANCacheReapUpdate.php @@ -104,7 +104,13 @@ class WANCacheReapUpdate implements DeferrableUpdate { /** @var WikiPage[]|LocalFile[]|User[] $entities */ $entities = []; - $entities[] = WikiPage::factory( Title::newFromTitleValue( $t ) ); + // You can't create a WikiPage for special pages (-1) or other virtual + // namespaces, but special pages do appear in RC sometimes, e.g. for logs + // of AbuseFilter filter changes. + if ( $t->getNamespace() >= 0 ) { + $entities[] = WikiPage::factory( Title::newFromTitleValue( $t ) ); + } + if ( $t->inNamespace( NS_FILE ) ) { $entities[] = wfLocalFile( $t->getText() ); }