X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpurgeChangedFiles.php;h=29a36d552cffa7a146c59055bd3ef9ae6835f824;hb=3c2e8a0f6176f9b8215b274ff3565d42030836be;hp=98054523bcfc20897ba2a247f2f139c6656a9719;hpb=b5370206ff602728c08403f14756d4339bf0a708;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/purgeChangedFiles.php b/maintenance/purgeChangedFiles.php index 98054523bc..29a36d552c 100644 --- a/maintenance/purgeChangedFiles.php +++ b/maintenance/purgeChangedFiles.php @@ -77,7 +77,7 @@ class PurgeChangedFiles extends Maintenance { global $wgHTCPRouting; if ( $this->hasOption( 'htcp-dest' ) ) { - $parts = explode( ':', $this->getOption( 'htcp-dest' ) ); + $parts = explode( ':', $this->getOption( 'htcp-dest' ), 2 ); if ( count( $parts ) < 2 ) { // Add default htcp port $parts[] = '4827'; @@ -258,5 +258,5 @@ class PurgeChangedFiles extends Maintenance { } } -$maintClass = "PurgeChangedFiles"; +$maintClass = PurgeChangedFiles::class; require_once RUN_MAINTENANCE_IF_MAIN;