From be574731fcb3db99df04b7300cea184b2780ba12 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 27 Mar 2013 13:34:04 +0400 Subject: modify sorting by date_entered: set date_entered per-batch; use updated as a secondary criteria --- classes/feeds.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'classes/feeds.php') diff --git a/classes/feeds.php b/classes/feeds.php index 2c45da2dd..2aa567fcd 100644 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -351,7 +351,9 @@ class Feeds extends Handler_Protected { # $content_link = "" . # $line["title"] . ""; - $updated_fmt = make_local_datetime($this->link, $line["updated_noms"], false); + $updated_fmt = make_local_datetime($this->link, $line["updated"], false); + $date_entered_fmt = T_sprintf("Imported at %s", + make_local_datetime($this->link, $line["date_entered"], false)); if (get_pref($this->link, 'SHOW_CONTENT_PREVIEW')) { $content_preview = truncate_string(strip_tags($line["content_preview"]), @@ -459,7 +461,9 @@ class Feeds extends Handler_Protected { } } - $reply['content'] .= "$updated_fmt"; + $reply['content'] .= "$updated_fmt + "; + $reply['content'] .= "
"; $reply['content'] .= $score_pic; @@ -566,7 +570,8 @@ class Feeds extends Handler_Protected { } } - $reply['content'] .= "$updated_fmt"; + $reply['content'] .= " + $updated_fmt"; $reply['content'] .= "
"; $reply['content'] .= "$score_pic"; -- cgit v1.2.3-54-g00ecf