X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fdeferred%2FWANCacheReapUpdate.php;h=b193d5f4e49777984e60cc0345caa5a4eb4d067e;hb=8b220cb5b6c5d3779b20a1d59de97291ece80282;hp=a218f76114e06d142bf0930ba69bfd340907fd83;hpb=ebba25929c3672b9b6b05537856dda71645706aa;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/deferred/WANCacheReapUpdate.php b/includes/deferred/WANCacheReapUpdate.php index a218f76114..b193d5f4e4 100644 --- a/includes/deferred/WANCacheReapUpdate.php +++ b/includes/deferred/WANCacheReapUpdate.php @@ -114,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 );