*/\r
public function genarateFeed()\r
{\r
- if ($this->version == RSS2) {\r
-// header('Content-type: text/xml; charset=UTF-8');\r
- // this line prevents Chrome 20 from prompting download\r
- // used by Google: https://news.google.com/news/feeds?ned=us&topic=b&output=rss\r
-// 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
+ header('Content-type: text/xml; charset=UTF-8');\r
+ // this line prevents Chrome 20 from prompting download\r
+ // used by Google: https://news.google.com/news/feeds?ned=us&topic=b&output=rss\r
+ header('X-content-type-options: nosniff');\r
+\r
$this->printHead();\r
$this->printChannels();\r
$this->printItems();\r