]> git.wh0rd.org Git - tt-rss.git/commitdiff
Update public.php
authorsymac <wikitipiac@laposte.net>
Sun, 31 Mar 2013 18:58:22 +0000 (21:58 +0300)
committersymac <wikitipiac@laposte.net>
Sun, 31 Mar 2013 18:58:22 +0000 (21:58 +0300)
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

index 6822faa771832f295232d10b73b3a22fc69e4716..37c704584798bc5bd5afb90857ff55db3e681b11 100644 (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);