Mercurial > SimpleWebPresenter
comparison Sitemap.inc @ 91:1d4c980f4255
Change the way headers are set.
Disabled validation for non-html pages.
| author | Tom Fredrik "BFG" Klaussen <bfg@blenning.no> |
|---|---|
| date | Thu, 18 Oct 2012 00:28:48 +0200 |
| parents | b9654b9c4a66 |
| children | 8aadd7a23b68 |
comparison
equal
deleted
inserted
replaced
| 90:aafc23919e79 | 91:1d4c980f4255 |
|---|---|
| 27 | 27 |
| 28 $this->options = new Options($this->master); | 28 $this->options = new Options($this->master); |
| 29 } | 29 } |
| 30 | 30 |
| 31 function cacheCheck() | 31 function cacheCheck() |
| 32 { | |
| 33 return false; | |
| 34 } | |
| 35 | |
| 36 function mayValidate() | |
| 32 { | 37 { |
| 33 return false; | 38 return false; |
| 34 } | 39 } |
| 35 | 40 |
| 36 function generateContent() { | 41 function generateContent() { |
| 102 } | 107 } |
| 103 | 108 |
| 104 $out .= '</urlset>'; | 109 $out .= '</urlset>'; |
| 105 | 110 |
| 106 $res = new PageContent($out); | 111 $res = new PageContent($out); |
| 107 $res->addHeader('Content-type: application/xml'); | 112 $res->setHeader('Content-type', 'application/xml'); |
| 108 return $res; | 113 return $res; |
| 109 } | 114 } |
| 110 } | 115 } |
| 111 ?> | 116 ?> |
