From 7a74abd5da830d065e38b42a6c67dd2dc4c3fc0e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 26 Apr 2007 07:30:05 +0100 Subject: [PATCH] cleanup pref-feeds browser --- modules/pref-feeds.php | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index c11ce2aa..36ac7962 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -838,10 +838,9 @@ } print " - ".__('Title')." - ".__('Feed')." - ".__('Last Article')." - ".__('Updated').""; + ".__('Title')." + ".__('Last Article')." + ".__('Updated').""; } $lnum = 0; @@ -863,7 +862,9 @@ $last_updated = $line["last_updated"]; - if (get_pref($link, 'HEADLINES_SMART_DATE')) { + if (!$last_updated) { + $last_updated = "—"; + } else if (get_pref($link, 'HEADLINES_SMART_DATE')) { $last_updated = smart_date_time(strtotime($last_updated)); } else { $short_date = get_pref($link, 'SHORT_DATE_FORMAT'); @@ -872,7 +873,9 @@ $last_article = $line["last_article"]; - if (get_pref($link, 'HEADLINES_SMART_DATE')) { + if (!$last_article) { + $last_article = "—"; + } else if (get_pref($link, 'HEADLINES_SMART_DATE')) { $last_article = smart_date_time(strtotime($last_article)); } else { $short_date = get_pref($link, 'SHORT_DATE_FORMAT'); @@ -891,10 +894,9 @@ print " "; } - print "".__('Title')." - ".__('Feed')." - ".__('Last Article')." - ".__('Updated').""; + print "".__('Title')." + ".__('Last Article')." + ".__('Updated').""; $cur_cat_id = $cat_id; } @@ -937,11 +939,8 @@ print "" . "$edit_title $parent_title" . ""; - - print "" . - $edit_link . ""; - print "" . + print "" . "$last_article"; print "" . -- 2.39.5