mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 02:51:35 +02:00
[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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user