Set the previous size for page creations to zero in rebuildrecentchanges.php
authorGeoffreyT2000 <geoffreytrang@gmail.com>
Wed, 21 Feb 2018 00:32:03 +0000 (16:32 -0800)
committerUmherirrender <umherirrender_de.wp@web.de>
Mon, 6 Aug 2018 10:18:17 +0000 (10:18 +0000)
The rebuildrecentchanges.php script should set the previous size for page creations to zero, not null, in order to make the new page's size actually appear on Special:RecentChanges.

Bug: T187842
Change-Id: I9823c5fe6f0503208b347e1ece9a1f894dba24c3

maintenance/rebuildrecentchanges.php

index 471c7ae..903cd40 100644 (file)
@@ -221,7 +221,7 @@ class RebuildRecentchanges extends Maintenance {
                                } else {
                                        # No previous edit
                                        $lastOldId = 0;
-                                       $lastSize = null;
+                                       $lastSize = 0;
                                        $new = 1; // probably true
                                }
                        }