diff options
author | Andrew Dolgov <[email protected]> | 2006-02-26 08:09:48 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2006-02-26 08:09:48 +0100 |
commit | a545b564422750af49f3d051873eef2d30592665 (patch) | |
tree | 24051eb02f35f335fc30dea8ba96a9a41fd432fc /backend.php | |
parent | b6104dee39262371c75cd617adaeca7a89456a4a (diff) |
use author attribute
Diffstat (limited to 'backend.php')
-rw-r--r-- | backend.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/backend.php b/backend.php index 9673174fe..da9087f9c 100644 --- a/backend.php +++ b/backend.php @@ -903,7 +903,8 @@ $result = db_query($link, "SELECT title,link,content,feed_id,comments,int_id, SUBSTRING(updated,1,16) as updated, (SELECT icon_url FROM ttrss_feeds WHERE id = feed_id) as icon_url, - num_comments + num_comments, + author FROM ttrss_entries,ttrss_user_entries WHERE id = '$id' AND ref_id = id"); @@ -967,7 +968,14 @@ print "<div class=\"postHeader\"><table width=\"100%\">"; - print "<tr><td><a href=\"" . $line["link"] . "\">" . $line["title"] . "</a></td>"; + $entry_author = $line["author"]; + + if ($entry_author) { + $entry_author = " - by $entry_author"; + } + + print "<tr><td><a href=\"" . $line["link"] . "\">" . $line["title"] . + "</a>$entry_author</td>"; $parsed_updated = date(get_pref($link, 'LONG_DATE_FORMAT'), strtotime($line["updated"])); |