Changeset 2323 for branches

Show
Ignore:
Timestamp:
12/19/10 21:06:14 (17 months ago)
Author:
petsagouris
Message:

[Branch 1.5] Removing the extension status of the RSS class.

Location:
branches/1.5/libs
Files:
1 added
1 removed
1 modified

Legend:

Unmodified
Added
Removed
  • branches/1.5/libs/Feeds.php

    r2317 r2323  
    3737         */ 
    3838        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'); 
    4040                 
    4141                $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); 
    4444                $feed->description = $description; 
    4545                 
     
    4747                        $feed->addItem($items); 
    4848                } 
    49                                  
    50                 echo $feed->out($content_type); 
     49 
     50                $r = $feed->out($content_type); 
     51                echo $r; 
    5152        } 
    5253 
     
    134135 
    135136} 
    136  
    137 ?>