summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-27 13:34:04 +0400
committerAndrew Dolgov <[email protected]>2013-03-27 13:34:04 +0400
commitbe574731fcb3db99df04b7300cea184b2780ba12 (patch)
tree359b92f7a9d2a9401a692b9f816e9cab3b1feb3c /classes
parent69ad8b683be97209b87d2634ec8618849e71adea (diff)
modify sorting by date_entered: set date_entered per-batch; use updated as a secondary criteria
Diffstat (limited to 'classes')
-rw-r--r--classes/feeds.php11
1 files changed, 8 insertions, 3 deletions
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 = "<a href=\"javascript:viewContentUrl('".$line["link"]."');\">" .
# $line["title"] . "</a>";
- $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</span>";
+ $reply['content'] .= "<span title='$date_entered_fmt'>$updated_fmt</span>
+ </span>";
+
$reply['content'] .= "<div class=\"hlRight\">";
$reply['content'] .= $score_pic;
@@ -566,7 +570,8 @@ class Feeds extends Handler_Protected {
}
}
- $reply['content'] .= "<span class='updated'>$updated_fmt</span>";
+ $reply['content'] .= "<span class='updated' title='$date_entered_fmt'>
+ $updated_fmt</span>";
$reply['content'] .= "<div style=\"vertical-align : middle\">";
$reply['content'] .= "$score_pic";