X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=maintenance%2FshowSiteStats.php;h=1d3e43a1e9310db71388a42ec52cc89baa5ec7d2;hb=d7c4e65fddc7a737395cb1dbaedb4d51eff3cc43;hp=56cc5737b8d559beb4fbb4c38c10f33058c70e69;hpb=53be5c92adab85c799754775e6b68c30fed6bf9c;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/showSiteStats.php b/maintenance/showSiteStats.php index 56cc5737b8..1d3e43a1e9 100644 --- a/maintenance/showSiteStats.php +++ b/maintenance/showSiteStats.php @@ -39,18 +39,18 @@ require_once __DIR__ . '/Maintenance.php'; class ShowSiteStats extends Maintenance { public function __construct() { parent::__construct(); - $this->mDescription = "Show the cached statistics"; + $this->addDescription( 'Show the cached statistics' ); } public function execute() { - $fields = array( + $fields = [ 'ss_total_edits' => 'Total edits', 'ss_good_articles' => 'Number of articles', 'ss_total_pages' => 'Total pages', 'ss_users' => 'Number of users', 'ss_active_users' => 'Active users', 'ss_images' => 'Number of images', - ); + ]; // Get cached stats from slave database $dbr = $this->getDB( DB_SLAVE );