Mercurial > SimpleWebPresenter
comparison Sitemap.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 | 7c68015b211a |
| children | 1d4c980f4255 |
comparison
equal
deleted
inserted
replaced
| 85:590e6950fa7f | 86:b9654b9c4a66 |
|---|---|
| 101 } | 101 } |
| 102 } | 102 } |
| 103 | 103 |
| 104 $out .= '</urlset>'; | 104 $out .= '</urlset>'; |
| 105 | 105 |
| 106 header('Content-type: application/xml'); | 106 $res = new PageContent($out); |
| 107 return $out; | 107 $res->addHeader('Content-type: application/xml'); |
| 108 return $res; | |
| 108 } | 109 } |
| 109 } | 110 } |
| 110 ?> | 111 ?> |
