Mercurial > defr > DualBlog
comparison includes/class.skeleton.php @ 38:33d1c5a13acd
On va dire: oooops. Il manquait bien evidement des parenthèses.
| author | Franck Deroche <webmaster@defr.org> |
|---|---|
| date | Mon, 05 Nov 2007 10:48:33 +0100 |
| parents | a6c3716cab6a |
| children | 1cdb1a68634b |
comparison
equal
deleted
inserted
replaced
| 37:5eb974b45cb1 | 38:33d1c5a13acd |
|---|---|
| 236 | 236 |
| 237 private function setContentTypeHeader() { | 237 private function setContentTypeHeader() { |
| 238 $contentType = null; | 238 $contentType = null; |
| 239 if(Skeleton::getOutputType() == Skeleton::OUTPUT_ATOM) | 239 if(Skeleton::getOutputType() == Skeleton::OUTPUT_ATOM) |
| 240 $contentType = 'application/atom+xml'; | 240 $contentType = 'application/atom+xml'; |
| 241 else if($this->useXML && Skeleton::getOutputType == Skeleton::OUTPUT_XHTML) | 241 else if($this->useXML && Skeleton::getOutputType() == Skeleton::OUTPUT_XHTML) |
| 242 $contentType = 'application/xhtml+xml; charset=utf-8'; | 242 $contentType = 'application/xhtml+xml; charset=utf-8'; |
| 243 if(!is_null($contentType)) | 243 if(!is_null($contentType)) |
| 244 header('Content-Type: ' . $contentType); | 244 header('Content-Type: ' . $contentType); |
| 245 } | 245 } |
| 246 | 246 |
