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.
This commit is contained in:
symac 2013-03-31 21:58:22 +03:00
parent 0db3db2e37
commit e9c6e27ddb

View file

@ -65,7 +65,8 @@ class Handler_Public extends Handler {
if ($line['note']) { if ($line['note']) {
$content = "<div style=\"$note_style\">Article note: " . $line['note'] . "</div>" . $content = "<div style=\"$note_style\">Article note: " . $line['note'] . "</div>" .
$content; $content;
} $tpl->setVariable('ARTICLE_NOTE', htmlspecialchars($line['note']), true);
}
$tpl->setVariable('ARTICLE_CONTENT', $content, true); $tpl->setVariable('ARTICLE_CONTENT', $content, true);