X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2Fmctest.php;h=c976bd7048258652d394cb9991045f65244ed8c6;hp=60f94a5fa639a6fe3c3a6c2aff7fbe5f7e81918c;hb=5ca054dafe0449b297822eb25da429735a3a3ac7;hpb=0d7345308132ffd1f6e3b0820143fbd44901adbe 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;