summaryrefslogtreecommitdiff
path: root/templates/themes
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2013-07-18 15:31:22 -0400
committerczaks <marcin@6irc.net>2013-07-18 15:31:22 -0400
commitaa9844ae2a3522c0792096c7d3682ea9f1679017 (patch)
treeee8b63ae8116ea499703b935f1b805442486158f /templates/themes
parentfa66b96240e9fdf7b179e604833d1c59702f9c39 (diff)
sitemap theme: fix notice when rebuilding using tools/rebuild.php from CLI
Diffstat (limited to 'templates/themes')
-rw-r--r--templates/themes/sitemap/info.php2
1 files changed, 1 insertions, 1 deletions
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'
);