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:
31b5967
)
Merge "Use Linker::link() instead of Linker::linkKnown() when having options"
author
Siebrand
<siebrand@wikimedia.org>
Mon, 22 Oct 2012 12:06:57 +0000
(12:06 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Mon, 22 Oct 2012 12:06:57 +0000
(12:06 +0000)
includes/specials/SpecialNewpages.php
patch
|
blob
|
history
diff --git
a/includes/specials/SpecialNewpages.php
b/includes/specials/SpecialNewpages.php
index
bd7b41f
..
08d1517
100644
(file)
--- a/
includes/specials/SpecialNewpages.php
+++ b/
includes/specials/SpecialNewpages.php
@@
-325,12
+325,13
@@
class SpecialNewpages extends IncludableSpecialPage {
$query['rcid'] = $result->rc_id;
}
- $plink = Linker::linkKnown(
+ // Linker::linkKnown() uses 'known' and 'noclasses' options. This breaks the colouration for stubs.
+ $plink = Linker::link(
$title,
null,
array( 'class' => 'mw-newpages-pagename' ),
$query,
- array( 'known' )
// Set explicitly to avoid the default of 'known','noclasses'. This breaks the colouration for stubs
+ array( 'known' )
);
$histLink = Linker::linkKnown(
$title,