summaryrefslogtreecommitdiff
path: root/plugins/mail
diff options
context:
space:
mode:
authorjustauser <[email protected]>2013-05-27 12:07:56 -0400
committerjustauser <[email protected]>2013-05-27 12:07:56 -0400
commit2e937560dfada30b398760308ce11f08c205d468 (patch)
treeefcc05dca6f041338493573ca40821d047ac8ce1 /plugins/mail
parent6dd01fcea230dc96bd3955aa74cf16aa1c5c17ca (diff)
Added the note text to the body of the email sending articles
Diffstat (limited to 'plugins/mail')
-rw-r--r--plugins/mail/init.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mail/init.php b/plugins/mail/init.php
index 626fe8717..a7efcf273 100644
--- a/plugins/mail/init.php
+++ b/plugins/mail/init.php
@@ -56,7 +56,7 @@ class Mail extends Plugin {
$tpl->setVariable('USER_EMAIL', $user_email, true);
$tpl->setVariable('TTRSS_HOST', $_SERVER["HTTP_HOST"], true);
- $result = db_query("SELECT link, content, title
+ $result = db_query("SELECT link, content, title, note
FROM ttrss_user_entries, ttrss_entries WHERE id = ref_id AND
id IN ($param) AND owner_uid = " . $_SESSION["uid"]);
@@ -71,6 +71,7 @@ class Mail extends Plugin {
$tpl->setVariable('ARTICLE_TITLE', strip_tags($line["title"]));
$tpl->setVariable('ARTICLE_URL', strip_tags($line["link"]));
+ $tpl->setVariable('ARTICLE_NOTE', strip_tags($line["note"]));
$tpl->addBlock('article');
}