Mercurial > SimpleWebPresenter
comparison InputParser.inc @ 92:f468365813c9
Set language header.
Remove cruft.
| author | Tom Fredrik "BFG" Klaussen <bfg@blenning.no> |
|---|---|
| date | Thu, 18 Oct 2012 14:04:19 +0200 |
| parents | 7c68015b211a |
| children | d98e315308cd |
comparison
equal
deleted
inserted
replaced
| 91:1d4c980f4255 | 92:f468365813c9 |
|---|---|
| 73 * Generate an appropriate response for this page, eg. 302 NOT | 73 * Generate an appropriate response for this page, eg. 302 NOT |
| 74 * MODIFIED or the actual page | 74 * MODIFIED or the actual page |
| 75 */ | 75 */ |
| 76 function generateContent() | 76 function generateContent() |
| 77 { | 77 { |
| 78 //print_r($this->options->getCache()->cacheSet(1)); | 78 $retVal = new PageContent($this->master->saveXml($this->master)); |
| 79 //exit; | 79 $retVal->setHeader('Content-Language', $this->options->getLang()); |
| 80 return $this->master->saveXml($this->master); | 80 return $retVal; |
| 81 } | 81 } |
| 82 | 82 |
| 83 /** | 83 /** |
| 84 * Extracts data from a @<param@> tag. | 84 * Extracts data from a @<param@> tag. |
| 85 * | 85 * |
