X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=blobdiff_plain;f=includes%2Fdeferred%2FWANCacheReapUpdate.php;h=b193d5f4e49777984e60cc0345caa5a4eb4d067e;hb=e22efbce178309cb4dd537633b634bfc9e17d571;hp=604f2052c467a859e13ca1aae68f4a5729a813be;hpb=4077b57759756ecd0d25427ec9598feb28a28ac1;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/deferred/WANCacheReapUpdate.php b/includes/deferred/WANCacheReapUpdate.php index 604f2052c4..b193d5f4e4 100644 --- a/includes/deferred/WANCacheReapUpdate.php +++ b/includes/deferred/WANCacheReapUpdate.php @@ -1,5 +1,6 @@ getMainWANObjectCache(), ObjectCache::getLocalClusterInstance(), [ $this, 'getTitleChangeEvents' ], [ $this, 'getEventAffectedKeys' ], @@ -113,7 +114,8 @@ class WANCacheReapUpdate implements DeferrableUpdate { } if ( $t->inNamespace( NS_FILE ) ) { - $entities[] = wfLocalFile( $t->getText() ); + $entities[] = MediaWikiServices::getInstance()->getRepoGroup()->getLocalRepo() + ->newFile( $t->getText() ); } if ( $t->inNamespace( NS_USER ) ) { $entities[] = User::newFromName( $t->getText(), false );