X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FshowSiteStats.php;h=374a66e92d99dc5d24eb60538180edaff78fbac4;hb=b5c9682d28baf9e4f0ddaa73842c77703acac61e;hp=11f3a43248fba1d73aa0322e34e9a1fdf2c7a49d;hpb=117424d9e57256ffb1c27f17ba6eb004d3944ce1;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/showSiteStats.php b/maintenance/showSiteStats.php index 11f3a43248..374a66e92d 100644 --- a/maintenance/showSiteStats.php +++ b/maintenance/showSiteStats.php @@ -29,7 +29,7 @@ * @license GNU General Public License 2.0 or later */ -require_once( __DIR__ . '/Maintenance.php' ); +require_once __DIR__ . '/Maintenance.php'; /** * Maintenance script to show the cached statistics. @@ -41,6 +41,7 @@ class ShowSiteStats extends Maintenance { parent::__construct(); $this->mDescription = "Show the cached statistics"; } + public function execute() { $fields = array( 'ss_total_views' => 'Total views', @@ -65,10 +66,14 @@ class ShowSiteStats extends Maintenance { // Show them foreach ( $fields as $field => $desc ) { - $this->output( sprintf( "%-{$max_length_desc}s: %{$max_length_value}d\n", $desc, $stats->$field ) ); + $this->output( sprintf( + "%-{$max_length_desc}s: %{$max_length_value}d\n", + $desc, + $stats->$field + ) ); } } } $maintClass = "ShowSiteStats"; -require_once( RUN_MAINTENANCE_IF_MAIN ); +require_once RUN_MAINTENANCE_IF_MAIN;