getOutput(), etc. */ public function show() { $user = $this->getUser(); $title = $this->getTitle(); if ( !ApprovedRevs::userCanApprove( $user, $title ) ) { return true; } ApprovedRevs::unsetApproval( $title, $user ); // the message depends on whether the page should display // a blank right now or not global $egApprovedRevsBlankIfUnapproved; if ( $egApprovedRevsBlankIfUnapproved ) { $successMsg = wfMessage( 'approvedrevs-unapprovesuccess2' )->escaped(); } else { $successMsg = wfMessage( 'approvedrevs-unapprovesuccess' )->escaped(); } $out = $this->getOutput(); $out->addHTML( Html::successBox( $successMsg ) ); // Show the revision. $this->getWikiPage()->doPurge(); $this->getArticle()->view(); } }