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 "(bug 42787) Make import robust against corrupt content."
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialNewpages.php
diff --git
a/includes/specials/SpecialNewpages.php
b/includes/specials/SpecialNewpages.php
index
bd7b41f
..
85b9cf8
100644
(file)
--- a/
includes/specials/SpecialNewpages.php
+++ b/
includes/specials/SpecialNewpages.php
@@
-140,7
+140,8
@@
class SpecialNewpages extends IncludableSpecialPage {
$feedType = $this->opts->getValue( 'feed' );
if( $feedType ) {
$feedType = $this->opts->getValue( 'feed' );
if( $feedType ) {
- return $this->feed( $feedType );
+ $this->feed( $feedType );
+ return;
}
$allValues = $this->opts->getAllValues();
}
$allValues = $this->opts->getAllValues();
@@
-325,12
+326,13
@@
class SpecialNewpages extends IncludableSpecialPage {
$query['rcid'] = $result->rc_id;
}
$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,
$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,
);
$histLink = Linker::linkKnown(
$title,