dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
b8c26af
)
Merge "Add redirect=no only to redirects on redirect pages"
author
Tjones
<tjones@wikimedia.org>
Thu, 24 Mar 2016 15:45:43 +0000
(15:45 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Thu, 24 Mar 2016 15:45:43 +0000
(15:45 +0000)
includes/page/Article.php
patch
|
blob
|
history
diff --git
a/includes/page/Article.php
b/includes/page/Article.php
index
b561407
..
d57d3fd
100644
(file)
--- a/
includes/page/Article.php
+++ b/
includes/page/Article.php
@@
-1574,7
+1574,7
@@
class Article implements Page {
[],
// Automatically append redirect=no to each link, since most of them are
// redirect pages themselves.
-
[ 'redirect' => 'no'
],
+
$title->isRedirect() ? [ 'redirect' => 'no' ] : [
],
( $forceKnown ? [ 'known', 'noclasses' ] : [] )
) . '</li>';
}