diff options
Diffstat (limited to 'includes/specials/SpecialUnwatchedpages.php')
-rw-r--r-- | includes/specials/SpecialUnwatchedpages.php | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/includes/specials/SpecialUnwatchedpages.php b/includes/specials/SpecialUnwatchedpages.php index 954e3ffe..bb07c197 100644 --- a/includes/specials/SpecialUnwatchedpages.php +++ b/includes/specials/SpecialUnwatchedpages.php @@ -46,13 +46,16 @@ class UnwatchedpagesPage extends QueryPage { function getQueryInfo() { return array( 'tables' => array( 'page', 'watchlist' ), - 'fields' => array( 'namespace' => 'page_namespace', - 'title' => 'page_title', - 'value' => 'page_namespace' ), - 'conds' => array( 'wl_title IS NULL', - 'page_is_redirect' => 0, - "page_namespace != '" . NS_MEDIAWIKI . - "'" ), + 'fields' => array( + 'namespace' => 'page_namespace', + 'title' => 'page_title', + 'value' => 'page_namespace' + ), + 'conds' => array( + 'wl_title IS NULL', + 'page_is_redirect' => 0, + "page_namespace != '" . NS_MEDIAWIKI . "'" + ), 'join_conds' => array( 'watchlist' => array( 'LEFT JOIN', array( 'wl_title = page_title', 'wl_namespace = page_namespace' ) ) ) @@ -68,6 +71,15 @@ class UnwatchedpagesPage extends QueryPage { } /** + * 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 * @return string @@ -88,7 +100,7 @@ class UnwatchedpagesPage extends QueryPage { $wlink = Linker::linkKnown( $nt, $this->msg( 'watch' )->escaped(), - array(), + array( 'class' => 'mw-watch-link' ), array( 'action' => 'watch', 'token' => $token ) ); |