X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FgenerateSitemap.php;h=bed84a811b82ece34e2cfe432a2088ca3bc503a3;hb=99d73dc9033603b03198f84854e9a5078bde89b8;hp=d273a6a80222451bce71fce8fe6f51a2344b9bf6;hpb=4427b84407e03275bdb62ca58a0fde14f3dc7be6;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 ) {