summaryrefslogtreecommitdiff
path: root/classes/handler
diff options
context:
space:
mode:
authorsymac <[email protected]>2013-03-31 21:58:22 +0300
committersymac <[email protected]>2013-03-31 21:58:22 +0300
commite9c6e27ddbd4d7bf7bd279d46bc09d37dc67c5a2 (patch)
tree4b738e9f29623ef6fcc70ad97f1be59ccc187993 /classes/handler
parent0db3db2e3777f33064eb3601ac0dbcb3b64112dc (diff)
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.
Diffstat (limited to 'classes/handler')
-rw-r--r--classes/handler/public.php3
1 files changed, 2 insertions, 1 deletions
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 = "<div style=\"$note_style\">Article note: " . $line['note'] . "</div>" .
$content;
-}
+ $tpl->setVariable('ARTICLE_NOTE', htmlspecialchars($line['note']), true);
+ }
$tpl->setVariable('ARTICLE_CONTENT', $content, true);