summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-11-20 11:42:57 +0100
committerAndrew Dolgov <[email protected]>2005-11-20 11:42:57 +0100
commitc565e1ef9ec14e2383db4acceb5e5ffcebae66de (patch)
tree93f7d63c7460ef37989f2d503e459485856c47b8 /backend.php
parent5951ded1d1d0a4247c6dcb90a1d191e2be08b2d5 (diff)
feed details now actually shows latest headlines, not first ones
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/backend.php b/backend.php
index da97e097c..22fc434bb 100644
--- a/backend.php
+++ b/backend.php
@@ -2221,10 +2221,10 @@
print "</table>";
- $result = db_query($link, "SELECT title,updated
+ $result = db_query($link, "SELECT title,updated,unread
FROM ttrss_entries,ttrss_user_entries
WHERE ref_id = id AND feed_id = '$feed_id'
- ORDER BY date_entered LIMIT 5");
+ ORDER BY date_entered DESC LIMIT 5");
if (db_num_rows($result) > 0) {
@@ -2233,6 +2233,9 @@
print "<ul class=\"nomarks\">";
while ($line = db_fetch_assoc($result)) {
+ if ($line["unread"] == "t" || $line["unread"] == "1") {
+ $line["title"] = "<b>" . $line["title"] . "</b>";
+ }
print "<li>" . $line["title"].
"&nbsp;<span class=\"insensitive\">(" .$line["updated"].")</span></li>";
}