From fb486a33835c8dfda9ebe132ceb007bc8f6ff742 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 23 Aug 2007 12:39:09 +0100 Subject: [PATCH] simplepie: properly set feed title --- functions.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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"); -- 2.39.5