X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FgenerateSitemap.php;h=bed84a811b82ece34e2cfe432a2088ca3bc503a3;hb=5d743b03814d2e36abc45f0d9e048d6390b01084;hp=d273a6a80222451bce71fce8fe6f51a2344b9bf6;hpb=3aa1cd89d574283c5749710d7b80182d056ae146;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/generateSitemap.php b/maintenance/generateSitemap.php index d273a6a802..bed84a811b 100644 --- a/maintenance/generateSitemap.php +++ b/maintenance/generateSitemap.php @@ -182,7 +182,7 @@ class GenerateSitemap extends Maintenance { # Create directory if needed $fspath = $this->getOption( 'fspath', getcwd() ); if ( !wfMkdirParents( $fspath, null, __METHOD__ ) ) { - $this->error( "Can not create directory $fspath.", 1 ); + $this->fatalError( "Can not create directory $fspath." ); } $this->fspath = realpath( $fspath ) . DIRECTORY_SEPARATOR; @@ -410,7 +410,7 @@ class GenerateSitemap extends Maintenance { /** * gzwrite() / fwrite() wrapper * - * @param resource $handle + * @param resource &$handle * @param string $str */ function write( &$handle, $str ) { @@ -427,7 +427,7 @@ class GenerateSitemap extends Maintenance { /** * gzclose() / fclose() wrapper * - * @param resource $handle + * @param resource &$handle */ function close( &$handle ) { if ( $this->compress ) {