From aa9844ae2a3522c0792096c7d3682ea9f1679017 Mon Sep 17 00:00:00 2001 From: czaks Date: Thu, 18 Jul 2013 15:31:22 -0400 Subject: [PATCH] sitemap theme: fix notice when rebuilding using tools/rebuild.php from CLI --- templates/themes/sitemap/info.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/themes/sitemap/info.php b/templates/themes/sitemap/info.php index e16448ee..1198c2e3 100644 --- a/templates/themes/sitemap/info.php +++ b/templates/themes/sitemap/info.php @@ -23,7 +23,7 @@ 'name' => 'url', 'type' => 'text', 'comment' => '(with trailing slash)', - 'default' => 'http://' . $_SERVER['HTTP_HOST'] . $config['root'], + 'default' => 'http://' . (isset ($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : "localhost") . $config['root'], 'size' => '20' );