comparison 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
comparison
equal deleted inserted replaced
123:8678ce12d533 124:6766250a0baa
11 $baseDir = dirname(__FILE__); 11 $baseDir = dirname(__FILE__);
12 $cache = ScriptIncludeCache::instance(__FILE__); 12 $cache = ScriptIncludeCache::instance(__FILE__);
13 $cache->includeOnce('Sitemap.inc', dirname(__FILE__)); 13 $cache->includeOnce('Sitemap.inc', dirname(__FILE__));
14 14
15 try { 15 try {
16 $sitemap = new Sitemap(basePath() . "/master.xml"); 16 $base=basePath();
17 $base=$_SERVER['DOCUMENT_ROOT'];
18 $sitemap = new Sitemap($base . "/master.xml");
17 $sitemap->display(); 19 $sitemap->display();
18 } 20 }
19 catch (Exception $e) { 21 catch (Exception $e) {
20 errorPage($e, StatusCodes::HTTP_INTERNAL_SERVER_ERROR); 22 errorPage($e, StatusCodes::HTTP_INTERNAL_SERVER_ERROR);
21 } 23 }