]> git.wh0rd.org Git - tt-rss.git/commitdiff
generate article title when title is missing on import
authorAndrew Dolgov <fox@madoka.spb.ru>
Fri, 24 Aug 2007 13:48:10 +0000 (14:48 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Fri, 24 Aug 2007 13:48:10 +0000 (14:48 +0100)
functions.php

index 629b1e86a0511c1cb6c5db67c155e1255b411a62..89863f06c3e92e6de232e24cb44aabd42548697d 100644 (file)
                                        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';
                                        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);