From: Aaron Schulz Date: Mon, 21 Apr 2008 03:20:08 +0000 (+0000) Subject: Add rcid for new unpatrolled pages X-Git-Tag: 1.31.0-rc.0~48153 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=27e2a6834a44aa15a844b8c9068b2e180826fd3f;p=lhc%2Fweb%2Fwiklou.git Add rcid for new unpatrolled pages --- diff --git a/includes/ChangesList.php b/includes/ChangesList.php index 9889c6f45d..309c641d73 100644 --- a/includes/ChangesList.php +++ b/includes/ChangesList.php @@ -692,13 +692,16 @@ class EnhancedChangesList extends ChangesList { if( $rc_this_oldid != 0 ) { $o = 'oldid='.$rc_this_oldid; } - # Revision link + # Log timestamp if( $rc_type == RC_LOG ) { $link = ''.$rcObj->timestamp.' '; + # Revision link } else if( !ChangesList::userCan($rcObj,Revision::DELETED_TEXT) ) { $link = ''.$rcObj->timestamp.' '; } else { - $link = ''.$this->skin->makeKnownLinkObj( $rcObj->getTitle(), $rcObj->timestamp, $curIdEq.'&'.$o ).''; + $rcIdEq = ($rcObj->unpatrolled && $rc_type == RC_NEW) ? '&rcid='.$rcObj->mAttribs['rc_id'] : ''; + + $link = ''.$this->skin->makeKnownLinkObj( $rcObj->getTitle(), $rcObj->timestamp, $curIdEq.'&'.$o.$rcIdEq ).''; if( $this->isDeleted($rcObj,Revision::DELETED_TEXT) ) $link = ''.$link.' '; } @@ -850,7 +853,8 @@ class EnhancedChangesList extends ChangesList { if( $this->isDeleted($rcObj,LogPage::DELETED_ACTION) ) { $r .= ' ' . wfMsgHtml('rev-deleted-event') . ''; } else { - $r .= ' ' . LogPage::actionText( $rc_log_type, $rc_log_action, $rcObj->getTitle(), $this->skin, LogPage::extractParams($rc_params), true, true ); + $r .= ' ' . LogPage::actionText( $rc_log_type, $rc_log_action, $rcObj->getTitle(), + $this->skin, LogPage::extractParams($rc_params), true, true ); } }