Mercurial > SimpleWebPresenter
comparison sitemap.php @ 95:8a9bfbe220ca
Branch merge.
| author | Tom Fredrik "BFG" Klaussen <bfg@blenning.no> |
|---|---|
| date | Thu, 18 Oct 2012 17:40:21 +0200 |
| parents | b9654b9c4a66 |
| children | 41c128ba0c2c |
comparison
equal
deleted
inserted
replaced
| 94:2370f4450983 | 95:8a9bfbe220ca |
|---|---|
| 10 $baseDir = dirname(__FILE__); | 10 $baseDir = dirname(__FILE__); |
| 11 $cache = ScriptIncludeCache::instance(__FILE__); | 11 $cache = ScriptIncludeCache::instance(__FILE__); |
| 12 $cache->includeOnce('Sitemap.inc', dirname(__FILE__)); | 12 $cache->includeOnce('Sitemap.inc', dirname(__FILE__)); |
| 13 | 13 |
| 14 try { | 14 try { |
| 15 $sitemap = new Sitemap("master.xml"); | 15 $sitemap = new Sitemap(basePath() . "/master.xml"); |
| 16 $sitemap->display(); | 16 $sitemap->display(); |
| 17 } | 17 } |
| 18 catch (Exception $e) { | 18 catch (Exception $e) { |
| 19 errorPage($e, StatusCodes::HTTP_INTERNAL_SERVER_ERROR); | 19 errorPage($e, StatusCodes::HTTP_INTERNAL_SERVER_ERROR); |
| 20 } | 20 } |
