Hide feed button if feed file doesn't exists

This commit is contained in:
Roman Kelesidis 2023-03-05 23:43:57 +07:00
commit a051a10934
2 changed files with 2 additions and 1 deletions

View file

@ -300,6 +300,7 @@ $template->assign_vars(array(
'U_SEARCH_SELF_BY_MY' => "search.php?uid={$userdata['user_id']}&o=1",
'U_SEARCH_LATEST' => 'search.php?search_id=latest',
'U_SEARCH_UNANSWERED' => 'search.php?search_id=unanswered',
'U_ATOM_FEED' => file_exists($bb_cfg['atom']['path'] . '/f/0.atom') ? make_url($bb_cfg['atom']['url'] . '/f/0.atom') : false,
'SHOW_LAST_TOPIC' => $show_last_topic,
));