Mercurial > SimpleWebPresenter
view sitemap.php @ 83:ff5fc61aa5ea
Throw only specific exceptions, eg. non of type Exception base.
| author | Tom Fredrik "BFG" Klaussen <bfg@blenning.no> |
|---|---|
| date | Mon, 15 Oct 2012 16:52:28 +0200 |
| parents | 4acaab0b02e2 |
| children | b9654b9c4a66 |
line wrap: on
line source
<? /** * @file * Generates a sitemap */ include_once 'ScriptIncludeCache.inc'; /// @cond $baseDir = dirname(__FILE__); $cache = ScriptIncludeCache::instance(__FILE__); $cache->includeOnce('Sitemap.inc', dirname(__FILE__)); try { $sitemap = new Sitemap("master.xml"); $sitemap->genPage(); } catch (Exception $e) { errorPage($e, StatusCodes::HTTP_INTERNAL_SERVER_ERROR); } /// @endcond ?>
