Mercurial > SimpleWebPresenter
comparison flag.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 | 9b490aa11124 |
| children | b9654b9c4a66 |
comparison
equal
deleted
inserted
replaced
| 79:9b490aa11124 | 82:4acaab0b02e2 |
|---|---|
| 9 | 9 |
| 10 /// @cond | 10 /// @cond |
| 11 $scriptCache = ScriptIncludeCache::instance(__FILE__); | 11 $scriptCache = ScriptIncludeCache::instance(__FILE__); |
| 12 $scriptCache->includeOnce('Flag.inc'); | 12 $scriptCache->includeOnce('Flag.inc'); |
| 13 | 13 |
| 14 $flag = new Flag($scriptCache); | 14 try { |
| 15 $flag->genPage(); | 15 $flag = new Flag($scriptCache); |
| 16 $flag->genPage(); | |
| 17 } | |
| 18 catch (Exception $e) { | |
| 19 errorPage($e, StatusCodes::HTTP_INTERNAL_SERVER_ERROR); | |
| 20 } | |
| 16 /// @endcond | 21 /// @endcond |
