From: symac Date: Sun, 31 Mar 2013 18:58:22 +0000 (+0300) Subject: Update public.php X-Git-Tag: 1.7.6~91^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=e9c6e27ddbd4d7bf7bd279d46bc09d37dc67c5a2;p=tt-rss.git Update public.php Adding ability to access ARTICLE_NOTE directly in themes. Needed in a project of sharing RSS with notes in a specific atom field. --- diff --git a/classes/handler/public.php b/classes/handler/public.php index 6822faa7..37c70458 100644 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -65,7 +65,8 @@ class Handler_Public extends Handler { if ($line['note']) { $content = "
Article note: " . $line['note'] . "
" . $content; -} + $tpl->setVariable('ARTICLE_NOTE', htmlspecialchars($line['note']), true); + } $tpl->setVariable('ARTICLE_CONTENT', $content, true);