X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpurgeList.php;h=2f89520189cd54543a59c29cc0152081109444cc;hb=beb1c4a0eced04ce2098433c383f1fbe469569c9;hp=fb66db0036c676d4317d04802c14808466e8de24;hpb=0bb11a1b5833ca381d999fe3411281f10dca088c;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/purgeList.php b/maintenance/purgeList.php index fb66db0036..2f89520189 100644 --- a/maintenance/purgeList.php +++ b/maintenance/purgeList.php @@ -21,7 +21,7 @@ * @ingroup Maintenance */ -require_once( __DIR__ . '/Maintenance.php' ); +require_once __DIR__ . '/Maintenance.php'; /** * Maintenance script that sends purge requests for listed pages to squid. @@ -44,7 +44,7 @@ class PurgeList extends Maintenance { if ( $this->hasOption( 'all' ) ) { $this->purgeNamespace( false ); } elseif ( $this->hasOption( 'namespace' ) ) { - $this->purgeNamespace( intval( $this->getOption( 'namespace') ) ); + $this->purgeNamespace( intval( $this->getOption( 'namespace' ) ) ); } else { $this->doPurge(); } @@ -74,7 +74,7 @@ class PurgeList extends Maintenance { } } } - $this->output( "Purging " . count( $urls ). " urls\n" ); + $this->output( "Purging " . count( $urls ) . " urls\n" ); $this->sendPurgeRequest( $urls ); } @@ -129,7 +129,7 @@ class PurgeList extends Maintenance { } } else { if ( $this->hasOption( 'verbose' ) ) { - $this->output( implode( "\n", $urls ) . "\n" ); + $this->output( implode( "\n", $urls ) . "\n" ); } $u = new SquidUpdate( $urls ); $u->doUpdate(); @@ -139,4 +139,4 @@ class PurgeList extends Maintenance { } $maintClass = "PurgeList"; -require_once( RUN_MAINTENANCE_IF_MAIN ); +require_once RUN_MAINTENANCE_IF_MAIN;