summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-08-24 14:48:10 +0100
committerAndrew Dolgov <[email protected]>2007-08-24 14:48:10 +0100
commit9bb36aa078855370872ee678d679da6118d568af (patch)
tree4564e448f71482b5a364a7a26408c760dc490c59 /functions.php
parent868d0ed27e4a1e9a2e19ff4ff959c139b279abb7 (diff)
generate article title when title is missing on import
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/functions.php b/functions.php
index 629b1e86a..89863f06c 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);