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
1 changed files with 2 additions and 1 deletions

View File

@ -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);