Mercurial > SimpleWebPresenter
comparison flag.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 | 16c3ee204330 |
comparison
equal
deleted
inserted
replaced
| 85:590e6950fa7f | 86:b9654b9c4a66 |
|---|---|
| 11 $scriptCache = ScriptIncludeCache::instance(__FILE__); | 11 $scriptCache = ScriptIncludeCache::instance(__FILE__); |
| 12 $scriptCache->includeOnce('Flag.inc'); | 12 $scriptCache->includeOnce('Flag.inc'); |
| 13 | 13 |
| 14 try { | 14 try { |
| 15 $flag = new Flag($scriptCache); | 15 $flag = new Flag($scriptCache); |
| 16 $flag->genPage(); | 16 $flag->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 |
