From: WMDE-Fisch Date: Thu, 10 Mar 2016 16:48:59 +0000 (+0100) Subject: Adding number of changes info for grouped category changes X-Git-Tag: 1.31.0-rc.0~7603^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22lang_raccourcis%22%2C%22module=%24nom_module%22%29%20.%20%22?a=commitdiff_plain;h=b536c129cfec50a76693697754a6bfe02f867c1d;p=lhc%2Fweb%2Fwiklou.git Adding number of changes info for grouped category changes This patch addes the summarized number of category changes for grouped category changes on the EnhancedChangesList. Bug: T126849 Change-Id: I3c8ccb2ad6310dac19a724b2ce923c1e67e588be --- diff --git a/includes/changes/EnhancedChangesList.php b/includes/changes/EnhancedChangesList.php index 4a028bb112..946c6d1cc6 100644 --- a/includes/changes/EnhancedChangesList.php +++ b/includes/changes/EnhancedChangesList.php @@ -503,10 +503,11 @@ class EnhancedChangesList extends ChangesList { /** @var $block0 RecentChange */ $block0 = $block[0]; $last = $block[count( $block ) - 1]; - if ( !$allLogs && $rcObj->mAttribs['rc_type'] != RC_CATEGORIZE ) { - if ( !ChangesList::userCan( $rcObj, Revision::DELETED_TEXT, $this->getUser() ) ) { - $links['total-changes'] = $nchanges[$n]; - } elseif ( $isnew ) { + if ( !$allLogs ) { + if ( !ChangesList::userCan( $rcObj, Revision::DELETED_TEXT, $this->getUser() ) || + $isnew || + $rcObj->mAttribs['rc_type'] == RC_CATEGORIZE + ) { $links['total-changes'] = $nchanges[$n]; } else { $links['total-changes'] = Linker::link(