Merge pull request 'FIX: public.php - Undefined index: feed_title' (#34) from ohaucke/tt-rss:public-php-fix into master
Reviewed-on: https://git.tt-rss.org/fox/tt-rss/pulls/34
This commit is contained in:
commit
a6c5dda7e0
|
@ -125,7 +125,7 @@ class Handler_Public extends Handler {
|
||||||
$tpl->setVariable('ARTICLE_AUTHOR', htmlspecialchars($line['author']), true);
|
$tpl->setVariable('ARTICLE_AUTHOR', htmlspecialchars($line['author']), true);
|
||||||
|
|
||||||
$tpl->setVariable('ARTICLE_SOURCE_LINK', htmlspecialchars($line['site_url'] ? $line["site_url"] : get_self_url_prefix()), true);
|
$tpl->setVariable('ARTICLE_SOURCE_LINK', htmlspecialchars($line['site_url'] ? $line["site_url"] : get_self_url_prefix()), true);
|
||||||
$tpl->setVariable('ARTICLE_SOURCE_TITLE', htmlspecialchars($line['feed_title'] ? $line['feed_title'] : $feed_title), true);
|
$tpl->setVariable('ARTICLE_SOURCE_TITLE', htmlspecialchars($line['feed_title'] ?? $feed_title), true);
|
||||||
|
|
||||||
foreach ($line["tags"] as $tag) {
|
foreach ($line["tags"] as $tag) {
|
||||||
$tpl->setVariable('ARTICLE_CATEGORY', htmlspecialchars($tag), true);
|
$tpl->setVariable('ARTICLE_CATEGORY', htmlspecialchars($tag), true);
|
||||||
|
|
Loading…
Reference in New Issue