summaryrefslogtreecommitdiff
path: root/maintenance/getLagTimes.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2011-06-22 11:28:20 +0200
committerPierre Schmitz <pierre@archlinux.de>2011-06-22 11:28:20 +0200
commit9db190c7e736ec8d063187d4241b59feaf7dc2d1 (patch)
tree46d1a0dee7febef5c2d57a9f7b972be16a163b3d /maintenance/getLagTimes.php
parent78677c7bbdcc9739f6c10c75935898a20e1acd9e (diff)
update to MediaWiki 1.17.0
Diffstat (limited to 'maintenance/getLagTimes.php')
-rw-r--r--maintenance/getLagTimes.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/maintenance/getLagTimes.php b/maintenance/getLagTimes.php
index bc14ae71..0322fa2d 100644
--- a/maintenance/getLagTimes.php
+++ b/maintenance/getLagTimes.php
@@ -18,7 +18,7 @@
* @ingroup Maintenance
*/
-require_once( dirname(__FILE__) . '/Maintenance.php' );
+require_once( dirname( __FILE__ ) . '/Maintenance.php' );
class GetLagTimes extends Maintenance {
public function __construct() {
@@ -29,14 +29,14 @@ class GetLagTimes extends Maintenance {
public function execute() {
$lb = wfGetLB();
- if( $lb->getServerCount() == 1 ) {
+ 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 ) {
+ foreach ( $lags as $n => $lag ) {
$host = $lb->getServerName( $n );
- if( IP::isValid( $host ) ) {
+ if ( IP::isValid( $host ) ) {
$ip = $host;
$host = gethostbyaddr( $host );
} else {
@@ -51,4 +51,4 @@ class GetLagTimes extends Maintenance {
}
$maintClass = "GetLagTimes";
-require_once( DO_MAINTENANCE );
+require_once( RUN_MAINTENANCE_IF_MAIN );