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 )
);