X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpurgeChangedFiles.php;h=29a36d552cffa7a146c59055bd3ef9ae6835f824;hb=5424238aa9e21233d73bc27c95db19c49c6df26d;hp=98054523bcfc20897ba2a247f2f139c6656a9719;hpb=1b13888ed6bd09731f10045650714a3392bb55df;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;