header('X-content-type-options: nosniff');\r
} elseif ($this->version == JSON) {\r
header('Content-type: application/json; charset=UTF-8');\r
- $this->json = new stdClass();\r
} elseif ($this->version == JSONP) {\r
header('Content-type: application/javascript; charset=UTF-8');\r
- $this->json = new stdClass();\r
}\r
}\r
\r
+ if ($this->version == JSON || $this->version == JSONP) {\r
+ $this->json = new stdClass();\r
+ }\r
+\r
+\r
$this->printHead();\r
$this->printChannels();\r
$this->printItems();\r
public function setDescription($description)\r
{\r
$tag = ($this->version == ATOM)? 'subtitle' : 'description';\r
- $this->setChannelElement($tag, $desciption);\r
+ $this->setChannelElement($tag, $description);\r
}\r
\r
/**\r