Mercurial > SimpleWebPresenter
diff sitemap.php @ 124:6766250a0baa
Support for parameters as directory structure.
| author | Tom Fredrik Blenning Klaussen <bfg@bfgconsult.no> |
|---|---|
| date | Fri, 29 Dec 2017 19:59:22 +0100 |
| parents | 41c128ba0c2c |
| children | b6b4a58c7625 |
line wrap: on
line diff
--- a/sitemap.php Thu Dec 28 19:43:24 2017 +0100 +++ b/sitemap.php Fri Dec 29 19:59:22 2017 +0100 @@ -13,7 +13,9 @@ $cache->includeOnce('Sitemap.inc', dirname(__FILE__)); try { - $sitemap = new Sitemap(basePath() . "/master.xml"); + $base=basePath(); + $base=$_SERVER['DOCUMENT_ROOT']; + $sitemap = new Sitemap($base . "/master.xml"); $sitemap->display(); } catch (Exception $e) {
