X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FgetLagTimes.php;h=7365a2ee71d3d471443317de37bf7d9c084cdfe4;hb=775cd3c0eb92b8ef65c3d0e6af6126d008e7319f;hp=c47c61e4be2dd78fd3b93029aede2d74f0914dff;hpb=f021d3a8eb43aac1ebb391b28c1bf6c4e5f40f6f;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/getLagTimes.php b/maintenance/getLagTimes.php index c47c61e4be..7365a2ee71 100644 --- a/maintenance/getLagTimes.php +++ b/maintenance/getLagTimes.php @@ -21,7 +21,7 @@ * @ingroup Maintenance */ -require_once( dirname( __FILE__ ) . '/Maintenance.php' ); +require_once __DIR__ . '/Maintenance.php'; /** * Maintenance script that displays replication lag times. @@ -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;