Mercurial > SimpleWebPresenter
comparison sitemap.php @ 82:4acaab0b02e2
Catch exception at toplevel of all access pages.
| author | Tom Fredrik "BFG" Klaussen <bfg@blenning.no> |
|---|---|
| date | Mon, 15 Oct 2012 16:51:07 +0200 |
| parents | 1d5166aba2c5 |
| children | b9654b9c4a66 |
comparison
equal
deleted
inserted
replaced
| 79:9b490aa11124 | 82:4acaab0b02e2 |
|---|---|
| 9 /// @cond | 9 /// @cond |
| 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 $sitemap = new Sitemap("master.xml"); | 14 try { |
| 15 $sitemap->genPage(); | 15 $sitemap = new Sitemap("master.xml"); |
| 16 $sitemap->genPage(); | |
| 17 } | |
| 18 catch (Exception $e) { | |
| 19 errorPage($e, StatusCodes::HTTP_INTERNAL_SERVER_ERROR); | |
| 20 } | |
| 16 /// @endcond | 21 /// @endcond |
| 17 ?> | 22 ?> |
