X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=blobdiff_plain;f=includes%2FLinker.php;h=1a5058d6f4e88f7ac20f46529c3b2cec2312917e;hb=543c5c1a1f985f3107ad1172933770bb761e54cf;hp=e748b3a045867cd3198f9a29513d5d60e49c0e48;hpb=d8cc9ef907fbb76838f2726989aa642340c7eb38;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Linker.php b/includes/Linker.php index e748b3a045..1a5058d6f4 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -688,13 +688,14 @@ class Linker { if ( $label == '' ) { $label = $title->getPrefixedText(); } + $repoGroup = MediaWikiServices::getInstance()->getRepoGroup(); $currentExists = $time - && MediaWikiServices::getInstance()->getRepoGroup()->findFile( $title ) !== false; + && $repoGroup->findFile( $title ) !== false; if ( ( $wgUploadMissingFileUrl || $wgUploadNavigationUrl || $wgEnableUploads ) && !$currentExists ) { - if ( RepoGroup::singleton()->getLocalRepo()->checkRedirect( $title ) ) { + if ( $repoGroup->getLocalRepo()->checkRedirect( $title ) ) { // We already know it's a redirect, so mark it accordingly return self::link( $title,