X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FgetLagTimes.php;h=c2c6958733a33975688796c1c0d523dd7b18c9a1;hb=848eabef42e9be7f512aabdcc0d6ff5280e2fb94;hp=72b1d48a2dd663806f69ec75cf6dbf171713f371;hpb=89a055491c988688c13b26184c06ba9d7b3585f3;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/getLagTimes.php b/maintenance/getLagTimes.php index 72b1d48a2d..c2c6958733 100644 --- a/maintenance/getLagTimes.php +++ b/maintenance/getLagTimes.php @@ -21,7 +21,7 @@ * @ingroup Maintenance */ -require_once( __DIR__ . '/Maintenance.php' ); +require_once __DIR__ . '/Maintenance.php'; /** * Maintenance script that displays replication lag times. @@ -31,7 +31,7 @@ require_once( __DIR__ . '/Maintenance.php' ); class GetLagTimes extends Maintenance { public function __construct() { parent::__construct(); - $this->mDescription = "Dump replication lag times"; + $this->addDescription( 'Dump replication lag times' ); } public function execute() { @@ -39,7 +39,7 @@ class GetLagTimes extends Maintenance { if ( $lb->getServerCount() == 1 ) { $this->error( "This script dumps replication lag times, but you don't seem to have\n" - . "a multi-host db server configuration." ); + . "a multi-host db server configuration." ); } else { $lags = $lb->getLagTimes(); foreach ( $lags as $n => $lag ) { @@ -59,4 +59,4 @@ class GetLagTimes extends Maintenance { } $maintClass = "GetLagTimes"; -require_once( RUN_MAINTENANCE_IF_MAIN ); +require_once RUN_MAINTENANCE_IF_MAIN;