}
class CologneBlueTemplate extends BaseTemplate {
- protected $mWatchLinkNum = 0; // Appended to end of watch link id's
-
function execute() {
$this->html( 'headelement' );
echo $this->beforeContent();
function watchThisPage() {
global $wgOut, $wgUser;
- ++$this->mWatchLinkNum;
// Cache
$title = $this->getSkin()->getTitle();
'action' => 'unwatch',
'token' => UnwatchAction::getUnwatchToken( $title, $wgUser ),
);
- $id = 'mw-unwatch-link' . $this->mWatchLinkNum;
+ $id = 'mw-unwatch-link';
} else {
$text = wfMessage( 'watchthispage' )->text();
$query = array(
'action' => 'watch',
'token' => WatchAction::getWatchToken( $title, $wgUser ),
);
- $id = 'mw-watch-link' . $this->mWatchLinkNum;
+ $id = 'mw-watch-link';
}
$s = Linker::linkKnown(