getOutput(), etc. */ public function show() { $title = $this->getTitle(); if ( !ApprovedRevs::userCanApprove( $this->getUser(), $title ) ) { return true; } ApprovedRevs::unsetApprovedFileInDB( $title, $this->getUser() ); // 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, instead of the history page. $this->getWikiPage()->doPurge(); $this->getArticle()->view(); } }