From: Kunal Mehta Date: Tue, 8 Mar 2016 19:11:06 +0000 (-0800) Subject: initSiteStats.php: Make it obvious you need to use --update X-Git-Tag: 1.31.0-rc.0~7697^2 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=ec134c075f5f72010802f00f063fec396f3ec1b8;p=lhc%2Fweb%2Fwiklou.git initSiteStats.php: Make it obvious you need to use --update Otherwise people will run the script a few times and be totally confused as to why their statistics aren't being saved. The wording is taken from updateArticleCount.php, which has a similar parameter. Change-Id: I802553120c1bf4d8f6234ccced5f19ecd5cd9b66 --- diff --git a/maintenance/initSiteStats.php b/maintenance/initSiteStats.php index 7e62b89f48..b2530ce653 100644 --- a/maintenance/initSiteStats.php +++ b/maintenance/initSiteStats.php @@ -63,6 +63,9 @@ class InitSiteStats extends Maintenance { $this->output( "\nUpdating site statistics..." ); $counter->refresh(); $this->output( "done.\n" ); + } else { + $this->output( "\nTo update the site statistics table, run the script " + . "with the --update option.\n" ); } if ( $this->hasOption( 'active' ) ) {