- Timestamp:
- 12/19/10 21:06:14 (17 months ago)
- Location:
- branches/1.5/libs
- Files:
-
- 1 added
- 1 removed
- 1 modified
-
Feeds.php (modified) (3 diffs)
-
RSS.php (added)
-
extensions/RSSWriterClass (deleted)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.5/libs/Feeds.php
r2317 r2323 37 37 */ 38 38 public function rss($h, $title = '', $link = '', $description = '', $items = array(), $content_type = 'application/xml') { 39 require_once( EXTENSIONS.'RSSWriterClass/rsswriter.php');39 require_once(LIBS.'RSS.php'); 40 40 41 41 $feed = new RSS($h->url(array('page'=>'rss'))); 42 $feed->title = stripslashes(html_entity_decode($title, ENT_QUOTES, 'UTF-8'));43 $feed->link = html _entity_decode($link, ENT_QUOTES, 'UTF-8');42 $feed->title = htmlspecialchars_decode($title, ENT_QUOTES); 43 $feed->link = htmlspecialchars_decode($link, ENT_QUOTES); 44 44 $feed->description = $description; 45 45 … … 47 47 $feed->addItem($items); 48 48 } 49 50 echo $feed->out($content_type); 49 50 $r = $feed->out($content_type); 51 echo $r; 51 52 } 52 53 … … 134 135 135 136 } 136 137 ?>