From 9bb36aa078855370872ee678d679da6118d568af Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 24 Aug 2007 14:48:10 +0100 Subject: [PATCH] generate article title when title is missing on import --- functions.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/functions.php b/functions.php index 629b1e86..89863f06 100644 --- a/functions.php +++ b/functions.php @@ -630,7 +630,11 @@ if ($rss_1_date != "") $entry_timestamp = parse_w3cdtf($rss_1_date); if ($rss_2_date != "") $entry_timestamp = strtotime($rss_2_date); } - + + if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) { + _debug("update_rss_feed: date $entry_timestamp"); + } + if ($entry_timestamp == "" || $entry_timestamp == -1 || !$entry_timestamp) { $entry_timestamp = time(); $no_orig_date = 'true'; @@ -654,7 +658,11 @@ if (!$entry_link) $entry_link = $item["link"]; } - if (!$entry_title) continue; + if (defined('DAEMON_EXTENDED_DEBUG') || $_GET['xdebug']) { + _debug("update_rss_feed: title $entry_title"); + } + + if (!$entry_title) $entry_title = date("Y-m-d H:i:s", $entry_timestamp);; $entry_link = strip_tags($entry_link); -- 2.39.5