dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Extend Russian grammar support"
[lhc/web/wiklou.git]
/
maintenance
/
showStats.php
diff --git
a/maintenance/showStats.php
b/maintenance/showStats.php
index
f16853d
..
3036406
100644
(file)
--- a/
maintenance/showStats.php
+++ b/
maintenance/showStats.php
@@
-1,7
+1,7
@@
<?php
/**
<?php
/**
- *
Maintenance script to s
how the cached statistics.
+ *
S
how the cached statistics.
* Give out the same output as [[Special:Statistics]]
*
* This program is free software; you can redistribute it and/or modify
* Give out the same output as [[Special:Statistics]]
*
* This program is free software; you can redistribute it and/or modify
@@
-19,6
+19,7
@@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* http://www.gnu.org/copyleft/gpl.html
*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* http://www.gnu.org/copyleft/gpl.html
*
+ * @file
* @ingroup Maintenance
* @author Antoine Musso <hashar at free dot fr>
* Based on initStats.php by:
* @ingroup Maintenance
* @author Antoine Musso <hashar at free dot fr>
* Based on initStats.php by:
@@
-30,6
+31,11
@@
require_once( __DIR__ . '/Maintenance.php' );
require_once( __DIR__ . '/Maintenance.php' );
+/**
+ * Maintenance script to show the cached statistics.
+ *
+ * @ingroup Maintenance
+ */
class ShowStats extends Maintenance {
public function __construct() {
parent::__construct();
class ShowStats extends Maintenance {
public function __construct() {
parent::__construct();
@@
-53,7
+59,7
@@
class ShowStats extends Maintenance {
$max_length_value = $max_length_desc = 0;
foreach ( $fields as $field => $desc ) {
$max_length_value = max( $max_length_value, strlen( $stats->$field ) );
$max_length_value = $max_length_desc = 0;
foreach ( $fields as $field => $desc ) {
$max_length_value = max( $max_length_value, strlen( $stats->$field ) );
- $max_length_desc = max( $max_length_desc
,
strlen( $desc ) ) ;
+ $max_length_desc = max( $max_length_desc
,
strlen( $desc ) ) ;
}
// Show them
}
// Show them
@@
-65,4
+71,3
@@
class ShowStats extends Maintenance {
$maintClass = "ShowStats";
require_once( RUN_MAINTENANCE_IF_MAIN );
$maintClass = "ShowStats";
require_once( RUN_MAINTENANCE_IF_MAIN );
-