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 "Don't rely on $wgTitle in WebRequest"
[lhc/web/wiklou.git]
/
maintenance
/
initSiteStats.php
diff --git
a/maintenance/initSiteStats.php
b/maintenance/initSiteStats.php
index
c368c3f
..
49e0e9d
100644
(file)
--- a/
maintenance/initSiteStats.php
+++ b/
maintenance/initSiteStats.php
@@
-69,21
+69,19
@@
class InitSiteStats extends Maintenance {
$this->output( "{$views}\n" );
}
$this->output( "{$views}\n" );
}
+ if ( $this->hasOption( 'update' ) ) {
+ $this->output( "\nUpdating site statistics..." );
+ $counter->refresh();
+ $this->output( "done.\n" );
+ }
+
if ( $this->hasOption( 'active' ) ) {
if ( $this->hasOption( 'active' ) ) {
- $this->output( "
Coun
ting active users..." );
+ $this->output( "
\nCounting and upda
ting active users..." );
$active = SiteStatsUpdate::cacheUpdate( wfGetDB( DB_MASTER ) );
$this->output( "{$active}\n" );
}
$active = SiteStatsUpdate::cacheUpdate( wfGetDB( DB_MASTER ) );
$this->output( "{$active}\n" );
}
- $this->output( "\nUpdating site statistics..." );
-
- if ( $this->hasOption( 'update' ) ) {
- $counter->update();
- } else {
- $counter->refresh();
- }
-
- $this->output( "done.\n" );
+ $this->output( "\nDone.\n" );
}
}
}
}