]> git.wh0rd.org Git - tt-rss.git/commitdiff
simplepie: properly set feed title
authorAndrew Dolgov <fox@bah.spb.su>
Thu, 23 Aug 2007 11:39:09 +0000 (12:39 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Thu, 23 Aug 2007 11:39:09 +0000 (12:39 +0100)
functions.php

index 97b12ec463f88f38a81e3b49ea53471a1c30fb3f..5d086f9e98f908302ad2703a7ea7fefbbff3d9d1 100644 (file)
 
                        if (!$registered_title || $registered_title == "[Unknown]") {
 
-                               $feed_title = db_escape_string($rss->channel["title"]);
+                               if (ENABLE_SIMPLEPIE) {
+                                       $feed_title = $rss->get_title();
+                               } else {
+                                       $feed_title = db_escape_string($rss->channel["title"]);
+                               }
 
                                if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) {
                                        _debug("update_rss_feed: registering title: $feed_title");