dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Allow partially blocked users to tag unrelated revisions"
[lhc/web/wiklou.git]
/
includes
/
Linker.php
diff --git
a/includes/Linker.php
b/includes/Linker.php
index
e748b3a
..
1a5058d
100644
(file)
--- a/
includes/Linker.php
+++ b/
includes/Linker.php
@@
-688,13
+688,14
@@
class Linker {
if ( $label == '' ) {
$label = $title->getPrefixedText();
}
if ( $label == '' ) {
$label = $title->getPrefixedText();
}
+ $repoGroup = MediaWikiServices::getInstance()->getRepoGroup();
$currentExists = $time
$currentExists = $time
- &&
MediaWikiServices::getInstance()->getRepoGroup()
->findFile( $title ) !== false;
+ &&
$repoGroup
->findFile( $title ) !== false;
if ( ( $wgUploadMissingFileUrl || $wgUploadNavigationUrl || $wgEnableUploads )
&& !$currentExists
) {
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,
// We already know it's a redirect, so mark it accordingly
return self::link(
$title,