diff options
Diffstat (limited to 'MLEB/Translate/scripts/languageeditstats.php')
-rw-r--r-- | MLEB/Translate/scripts/languageeditstats.php | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/MLEB/Translate/scripts/languageeditstats.php b/MLEB/Translate/scripts/languageeditstats.php index 1c177a17..7f67a1c4 100644 --- a/MLEB/Translate/scripts/languageeditstats.php +++ b/MLEB/Translate/scripts/languageeditstats.php @@ -48,12 +48,8 @@ class Languageeditstats extends Maintenance { } public function execute() { - $hours = (int)$this->getOption( 'days' ); - $hours = $hours ? $hours * 7 : 7 * 24; - - $top = (int)$this->getOption( 'top' ); - $top = $top ? $top : 10; - + $hours = ( $this->getOption( 'days' ) ?: 7 ) * 24; + $top = (int)$this->getOption( 'top' ) ?: 10; $bots = $this->hasOption( 'bots' ); $namespaces = []; @@ -107,5 +103,5 @@ class Languageeditstats extends Maintenance { } } -$maintClass = 'Languageeditstats'; +$maintClass = Languageeditstats::class; require_once RUN_MAINTENANCE_IF_MAIN; |