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 "Add WikiFilePage::getForeignCategories() method"
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialRecentchanges.php
diff --git
a/includes/specials/SpecialRecentchanges.php
b/includes/specials/SpecialRecentchanges.php
index
b144d7b
..
23203ea
100644
(file)
--- a/
includes/specials/SpecialRecentchanges.php
+++ b/
includes/specials/SpecialRecentchanges.php
@@
-155,7
+155,7
@@
class SpecialRecentChanges extends IncludableSpecialPage {
$opts = $this->getOptions();
$this->setHeaders();
$this->outputHeader();
$opts = $this->getOptions();
$this->setHeaders();
$this->outputHeader();
- $this->add
RecentChangesJS
();
+ $this->add
Modules
();
// Fetch results, prepare a batch link existence check query
$conds = $this->buildMainQueryConds( $opts );
// Fetch results, prepare a batch link existence check query
$conds = $this->buildMainQueryConds( $opts );
@@
-517,8
+517,8
@@
class SpecialRecentChanges extends IncludableSpecialPage {
}
if ( $rows->numRows() === 0 ) {
}
if ( $rows->numRows() === 0 ) {
- $this->getOutput()->
wrapWikiMsg
(
-
"<div class='mw-changeslist-empty'>\n$1\n</div>", 'recentchanges-noresult
'
+ $this->getOutput()->
addHtml
(
+
'<div class="mw-changeslist-empty">' . $this->msg( 'recentchanges-noresult' )->parse() . '</div>
'
);
} else {
$this->getOutput()->addHTML( $rclistOutput );
);
} else {
$this->getOutput()->addHTML( $rclistOutput );
@@
-685,7
+685,6
@@
class SpecialRecentChanges extends IncludableSpecialPage {
/**
* Creates the choose namespace selection
*
/**
* Creates the choose namespace selection
*
- * @todo Uses radio buttons (HASHAR)
* @param FormOptions $opts
* @return string
*/
* @param FormOptions $opts
* @return string
*/
@@
-912,9
+911,9
@@
class SpecialRecentChanges extends IncludableSpecialPage {
}
/**
}
/**
- * Add
JavaScript to the page
+ * Add
page-specific modules.
*/
*/
-
function addRecentChangesJS
() {
+
protected function addModules
() {
$this->getOutput()->addModules( array(
'mediawiki.special.recentchanges',
) );
$this->getOutput()->addModules( array(
'mediawiki.special.recentchanges',
) );