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 "mediawiki.loader: Remove optional params in mw.loader.implement tests"
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialUnwatchedpages.php
diff --git
a/includes/specials/SpecialUnwatchedpages.php
b/includes/specials/SpecialUnwatchedpages.php
index
ec2e7f5
..
bb07c19
100644
(file)
--- a/
includes/specials/SpecialUnwatchedpages.php
+++ b/
includes/specials/SpecialUnwatchedpages.php
@@
-70,6
+70,15
@@
class UnwatchedpagesPage extends QueryPage {
return array( 'page_namespace', 'page_title' );
}
return array( 'page_namespace', 'page_title' );
}
+ /**
+ * Add the JS
+ * @param string|null $par
+ */
+ public function execute( $par ) {
+ parent::execute( $par );
+ $this->getOutput()->addModules( 'mediawiki.special.unwatchedPages' );
+ }
+
/**
* @param Skin $skin
* @param object $result Result row
/**
* @param Skin $skin
* @param object $result Result row
@@
-91,7
+100,7
@@
class UnwatchedpagesPage extends QueryPage {
$wlink = Linker::linkKnown(
$nt,
$this->msg( 'watch' )->escaped(),
$wlink = Linker::linkKnown(
$nt,
$this->msg( 'watch' )->escaped(),
- array(),
+ array(
'class' => 'mw-watch-link'
),
array( 'action' => 'watch', 'token' => $token )
);
array( 'action' => 'watch', 'token' => $token )
);