sitemap theme: fix notice when rebuilding using tools/rebuild.php from CLI

This commit is contained in:
czaks 2013-07-18 15:31:22 -04:00
parent fa66b96240
commit aa9844ae2a

View File

@ -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'
);