From: Ævar Arnfjörð Bjarmason Date: Sat, 11 Mar 2006 21:25:03 +0000 (+0000) Subject: * Fixed fatal error introduced by brion in version 1.20, wfDie() has not been X-Git-Tag: 1.6.0~212 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=5e8777a6d68ba85b2d41223f65452931eaf18111;p=lhc%2Fweb%2Fwiklou.git * Fixed fatal error introduced by brion in version 1.20, wfDie() has not been defined at that point. --- diff --git a/maintenance/generateSitemap.php b/maintenance/generateSitemap.php index a78975b9b6..2cf8312a95 100644 --- a/maintenance/generateSitemap.php +++ b/maintenance/generateSitemap.php @@ -440,16 +440,17 @@ class GenerateSitemap { } } -if ( in_array( '--help', $argv ) ) - wfDie( +if ( in_array( '--help', $argv ) ) { + echo "Usage: php generateSitemap.php [host] [options]\n" . "\thost = hostname\n" . "\toptions:\n" . "\t\t--help\tshow this message\n" . "\t\t--fspath\tThe file system path to save to, e.g /tmp/sitemap/\n" . "\t\t--path\tThe http path to use, e.g. /wiki\n" . - "\t\t--compress=[yes|no]\tcompress the sitemap files, default yes\n" - ); + "\t\t--compress=[yes|no]\tcompress the sitemap files, default yes\n"; + die( -1 ); +} if ( isset( $argv[1] ) && strpos( $argv[1], '--' ) !== 0 ) $_SERVER['SERVER_NAME'] = $argv[1];