mPage = $page; $this->mParams = $params; } function getTitle( $subpage='' ) { return $this->mPage->getTitle( $subpage ); } abstract function show(); function canEdit() { global $wgUser; static $canEdit = 'unset'; if ($canEdit == 'unset') { $canEdit = $wgUser->isAllowed( 'abusefilter-modify' ); } return $canEdit; } } class AbuseFilterChangesList extends OldChangesList { protected function insertExtra( &$s, &$rc, &$classes ) { ## Empty, used for subclassers to add anything special. $sk = $this->skin; $title = SpecialPage::getTitleFor( 'AbuseFilter', "examine/".$rc->mAttribs['rc_id'] ); $examineLink = $sk->link( $title, wfMsgExt( 'abusefilter-changeslist-examine', 'parseinline' ) ); $s .= " ($examineLink)"; } }