X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=blobdiff_plain;f=maintenance%2Fmctest.php;h=14df53c590504295d8c09af9013b6760e377e5d1;hb=0c341778ac7e3750f6709d39daa3225127814187;hp=60f94a5fa639a6fe3c3a6c2aff7fbe5f7e81918c;hpb=0d0059d36e7494792378c020f5de6033985c3637;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/mctest.php b/maintenance/mctest.php index 60f94a5fa6..14df53c590 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