X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fmctest.php;h=c976bd7048258652d394cb9991045f65244ed8c6;hb=77e3624caba072521fbc1826af2d47f9b29f4032;hp=60f94a5fa639a6fe3c3a6c2aff7fbe5f7e81918c;hpb=220e11d65165aee4724a043fa0e0f27083f5865a;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/mctest.php b/maintenance/mctest.php index 60f94a5fa6..c976bd7048 100644 --- a/maintenance/mctest.php +++ b/maintenance/mctest.php @@ -47,7 +47,7 @@ class McTest extends Maintenance { $iterations = $this->getOption( 'i', 100 ); if ( $cache ) { if ( !isset( $wgObjectCaches[$cache] ) ) { - $this->error( "MediaWiki isn't configured with a cache named '$cache'", 1 ); + $this->fatalError( "MediaWiki isn't configured with a cache named '$cache'" ); } $servers = $wgObjectCaches[$cache]['servers']; } elseif ( $this->hasArg() ) { @@ -58,7 +58,7 @@ class McTest extends Maintenance { } elseif ( isset( $wgObjectCaches[$wgMainCacheType]['servers'] ) ) { $servers = $wgObjectCaches[$wgMainCacheType]['servers']; } else { - $this->error( "MediaWiki isn't configured for Memcached usage", 1 ); + $this->fatalError( "MediaWiki isn't configured for Memcached usage" ); } # find out the longest server string to nicely align output later on @@ -102,5 +102,5 @@ class McTest extends Maintenance { } } -$maintClass = "McTest"; +$maintClass = McTest::class; require_once RUN_MAINTENANCE_IF_MAIN;