From: Andrew Dolgov Date: Thu, 23 Aug 2007 11:39:09 +0000 (+0100) Subject: simplepie: properly set feed title X-Git-Tag: 1.2.15~94 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=fb486a33835c8dfda9ebe132ceb007bc8f6ff742;p=tt-rss.git simplepie: properly set feed title --- diff --git a/functions.php b/functions.php index 97b12ec4..5d086f9e 100644 --- a/functions.php +++ b/functions.php @@ -497,7 +497,11 @@ 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");