X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fmctest.php;h=98f0eb99a5f099f401d1c6aa3a3aee52b7878462;hb=76661cf129e0dea40edefbd7d35a3f09130572a1;hp=c976bd7048258652d394cb9991045f65244ed8c6;hpb=16ef3e79c4c52aa6b74563b7eadcfc9792e7a4c4;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/mctest.php b/maintenance/mctest.php index c976bd7048..98f0eb99a5 100644 --- a/maintenance/mctest.php +++ b/maintenance/mctest.php @@ -50,8 +50,8 @@ class McTest extends Maintenance { $this->fatalError( "MediaWiki isn't configured with a cache named '$cache'" ); } $servers = $wgObjectCaches[$cache]['servers']; - } elseif ( $this->hasArg() ) { - $servers = [ $this->getArg() ]; + } elseif ( $this->hasArg( 0 ) ) { + $servers = [ $this->getArg( 0 ) ]; } elseif ( $wgMainCacheType === CACHE_MEMCACHED ) { global $wgMemCachedServers; $servers = $wgMemCachedServers;