From e9c6e27ddbd4d7bf7bd279d46bc09d37dc67c5a2 Mon Sep 17 00:00:00 2001 From: symac Date: Sun, 31 Mar 2013 21:58:22 +0300 Subject: 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. --- classes/handler/public.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/handler/public.php b/classes/handler/public.php index 6822faa77..37c704584 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); -- cgit v1.2.3