diff options
| author | czaks <marcin@6irc.net> | 2013-07-18 15:31:22 -0400 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2013-07-18 15:31:22 -0400 |
| commit | aa9844ae2a3522c0792096c7d3682ea9f1679017 (patch) | |
| tree | ee8b63ae8116ea499703b935f1b805442486158f | |
| parent | fa66b96240e9fdf7b179e604833d1c59702f9c39 (diff) | |
sitemap theme: fix notice when rebuilding using tools/rebuild.php from CLI
| -rw-r--r-- | templates/themes/sitemap/info.php | 2 |
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' ); |
