Mercurial > SimpleWebPresenter
comparison sitemap.php @ 86:b9654b9c4a66
Make headers a part of the content, rather than setting them directly.
| author | Tom Fredrik "BFG" Klaussen <bfg@blenning.no> |
|---|---|
| date | Mon, 15 Oct 2012 18:32:56 +0200 |
| parents | 4acaab0b02e2 |
| children | 8a9bfbe220ca |
comparison
equal
deleted
inserted
replaced
| 85:590e6950fa7f | 86:b9654b9c4a66 |
|---|---|
| 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("master.xml"); |
| 16 $sitemap->genPage(); | 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 } |
| 21 /// @endcond | 21 /// @endcond |
