From: matejsuchanek Date: Fri, 15 Apr 2016 20:11:27 +0000 (+0200) Subject: Kill obsolete check X-Git-Tag: 1.31.0-rc.0~7276 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/modifier.php?a=commitdiff_plain;h=82b5a3cdf3df58cf27fb7ebe5820a8c4142ca8e6;p=lhc%2Fweb%2Fwiklou.git Kill obsolete check Was a temporary fix for T126428 and was added in c940fa8ec1f965ea23a3eb8c2d1eeccd994c124b. Change-Id: Iad988f69068147cdc24c8829627875274540b16e --- diff --git a/includes/changes/EnhancedChangesList.php b/includes/changes/EnhancedChangesList.php index d79f31641f..a808516162 100644 --- a/includes/changes/EnhancedChangesList.php +++ b/includes/changes/EnhancedChangesList.php @@ -305,18 +305,10 @@ class EnhancedChangesList extends ChangesList { $last = 0; $first = count( $block ) - 1; # Some events (like logs and category changes) have an "empty" size, so we need to skip those... - while ( $last < $first && ( - $block[$last]->mAttribs['rc_new_len'] === null || - # TODO kill the below check after March 2016 - https://phabricator.wikimedia.org/T126428 - $block[$last]->mAttribs['rc_type'] == RC_CATEGORIZE - ) ) { + while ( $last < $first && $block[$last]->mAttribs['rc_new_len'] === null ) { $last++; } - while ( $last < $first && ( - $block[$first]->mAttribs['rc_old_len'] === null || - # TODO kill the below check after March 2016 - https://phabricator.wikimedia.org/T126428 - $block[$first]->mAttribs['rc_type'] == RC_CATEGORIZE - ) ) { + while ( $last < $first && $block[$first]->mAttribs['rc_old_len'] === null ) { $first--; } # Get net change