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