msg( 'removewatch' )->escaped(); } public function onSubmit( $data ) { wfProfileIn( __METHOD__ ); self::doUnwatch( $this->getTitle(), $this->getUser() ); wfProfileOut( __METHOD__ ); return true; } protected function alterForm( HTMLForm $form ) { $form->setSubmitTextMsg( 'confirm-unwatch-button' ); } protected function preText() { return $this->msg( 'confirm-unwatch-top' )->parse(); } public function onSuccess() { $this->getOutput()->addWikiMsg( 'removedwatchtext', $this->getTitle()->getPrefixedText() ); } }