site_stats: Unbreak counting newly created pages
authorEddie Greiner-Petter <git@eddie-sh.de>
Fri, 16 Feb 2018 21:18:48 +0000 (22:18 +0100)
committerEddie Greiner-Petter <git@eddie-sh.de>
Fri, 16 Feb 2018 21:20:29 +0000 (22:20 +0100)
commitd6cbf3ff43ab9a5f3612d8cc46e19281821db2fa
tree8de79512dfd18951848cf8b88293dc63fb0792f5
parent5ca4a8000d3f998886b030fe6907b4ea8bb7dd9e
site_stats: Unbreak counting newly created pages

Fixes a bug introduced on 331c9f9e2e that stopped newly created pages
from incrementing the counter of ss_total_pages in site_stats. The array
accepted by SiteStatsUpdate::factory is not meant to take a value with
the key 'total'. What's meant here is 'pages'. Let's change the variable
name as well to avoid confusion in the future.

Change-Id: I9c82d926206d9b46f333c6f6cb9d3c7d41db3a53
includes/page/WikiPage.php