Kill obsolete check
authormatejsuchanek <matejsuchanek97@gmail.com>
Fri, 15 Apr 2016 20:11:27 +0000 (22:11 +0200)
committerAddshore <addshorewiki@gmail.com>
Sun, 17 Apr 2016 09:20:49 +0000 (09:20 +0000)
Was a temporary fix for T126428 and was added in
c940fa8ec1f965ea23a3eb8c2d1eeccd994c124b.

Change-Id: Iad988f69068147cdc24c8829627875274540b16e

includes/changes/EnhancedChangesList.php

index d79f316..a808516 100644 (file)
@@ -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