[ticket/17470] Feed enable config not enforced

The 'feed_enable' config is never checked before generating the feeds. The
effective result is that feeds are always enabled, regardless of the setting.

PHPBB-17470
This commit is contained in:
Neo-CTC 2025-02-16 00:09:45 -06:00
parent 6b5bb4d51f
commit bfdf172992

View file

@ -123,6 +123,12 @@ class feed
$this->template = $twig;
$this->language = $language;
$this->phpbb_dispatcher = $phpbb_dispatcher;
// Feeds are disabled, no need to continue
if (!$this->config['feed_enable'])
{
$this->send_unavailable();
}
}
/**