Mercurial > SimpleWebPresenter
comparison Flag.inc @ 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 | 9b490aa11124 |
| children | 1d4c980f4255 |
comparison
equal
deleted
inserted
replaced
| 85:590e6950fa7f | 86:b9654b9c4a66 |
|---|---|
| 76 | 76 |
| 77 if (floatval($flag) < 0) { | 77 if (floatval($flag) < 0) { |
| 78 errorPage('Resource not found', 404); | 78 errorPage('Resource not found', 404); |
| 79 } | 79 } |
| 80 else { | 80 else { |
| 81 header("Content-Type: image/png"); | 81 $flag = new PageContent($flag); |
| 82 $flag->addHeader("Content-Type: image/png"); | |
| 82 return $flag; | 83 return $flag; |
| 83 } | 84 } |
| 84 } | 85 } |
| 85 } | 86 } |
