mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00: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:
parent
6b5bb4d51f
commit
bfdf172992
1 changed files with 6 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue