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
Remove $wgScriptExtension (deprecated and ignored since 1.25)
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialRecentchangeslinked.php
diff --git
a/includes/specials/SpecialRecentchangeslinked.php
b/includes/specials/SpecialRecentchangeslinked.php
index
d4aef6c
..
181b4db
100644
(file)
--- a/
includes/specials/SpecialRecentchangeslinked.php
+++ b/
includes/specials/SpecialRecentchangeslinked.php
@@
-65,7
+65,6
@@
class SpecialRecentChangesLinked extends SpecialRecentChanges {
$outputPage->addHTML(
Html::errorBox( $this->msg( 'allpagesbadtitle' )->parse() )
);
$outputPage->addHTML(
Html::errorBox( $this->msg( 'allpagesbadtitle' )->parse() )
);
-
return false;
}
return false;
}
@@
-295,12
+294,19
@@
class SpecialRecentChangesLinked extends SpecialRecentChanges {
}
protected function outputNoResults() {
}
protected function outputNoResults() {
- if ( $this->getTargetTitle() === false ) {
+ $targetTitle = $this->getTargetTitle();
+ if ( $targetTitle === false ) {
$this->getOutput()->addHTML(
$this->getOutput()->addHTML(
- '<div class="mw-changeslist-notargetpage">' .
+ '<div class="mw-changeslist-
empty mw-changeslist-
notargetpage">' .
$this->msg( 'recentchanges-notargetpage' )->parse() .
'</div>'
);
$this->msg( 'recentchanges-notargetpage' )->parse() .
'</div>'
);
+ } elseif ( !$targetTitle || $targetTitle->isExternal() ) {
+ $this->getOutput()->addHTML(
+ '<div class="mw-changeslist-empty mw-changeslist-invalidtargetpage">' .
+ $this->msg( 'allpagesbadtitle' )->parse() .
+ '</div>'
+ );
} else {
parent::outputNoResults();
}
} else {
parent::outputNoResults();
}