parent::__construct( $name, 'unwatchedpages' );
}
- function isExpensive() {
+ public function isExpensive() {
return true;
}
return false;
}
- function getQueryInfo() {
+ public function getQueryInfo() {
return array(
'tables' => array( 'page', 'watchlist' ),
'fields' => array(
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
$wlink = Linker::linkKnown(
$nt,
$this->msg( 'watch' )->escaped(),
- array(),
+ array( 'class' => 'mw-watch-link' ),
array( 'action' => 'watch', 'token' => $token )
);