$params = array();
- // In case we got a page creation which is yet unpatrolled and
- // recent changes patrolling is enabled, the user probably rather
- // wants to patrol the whole page (first revision) instead of seeing
- // a patrollink for the current revision.
- if ( $wgUseRCPatrol && $unpatrolled && $rc->getAttribute( 'rc_type' ) == RC_NEW ) {
- $params['patrolpage'] = 1;
- }
-
$articlelink = Linker::linkKnown(
$rc->getTitle(),
null,
* @param $rc RecentChange
*/
public function insertRollback( &$s, &$rc ) {
- if ( $rc->mAttribs['rc_type'] != RC_NEW && $rc->mAttribs['rc_this_oldid'] && $rc->mAttribs['rc_cur_id'] ) {
+ if ( $rc->mAttribs['rc_type'] == RC_EDIT && $rc->mAttribs['rc_this_oldid'] && $rc->mAttribs['rc_cur_id'] ) {
$page = $rc->getTitle();
/** Check for rollback and edit permissions, disallow special pages, and only
* show a link on the top-most revision */