X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fdeferred%2FWANCacheReapUpdate.php;h=b193d5f4e49777984e60cc0345caa5a4eb4d067e;hb=0c8cbf66e707691a2d4ff3659d5f86adb4969375;hp=604f2052c467a859e13ca1aae68f4a5729a813be;hpb=749a159cc93360272c62965445e0f8c0ee89f9a6;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 );