1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +02:00

Fix: News-Archive hidden when disabled.

This commit is contained in:
Cameron
2016-12-18 11:10:51 -08:00
parent bc5a224f25
commit e905ef4696

View File

@@ -295,7 +295,7 @@ class news_front
{
// do not show the news archive on the news.php?item.X page (but only on the news mainpage)
if(empty($this->defaultTemplate) || !empty($this->action))
if(empty($this->defaultTemplate) || !empty($this->action) || empty($this->pref['newsposts_archive']))
{
return null;
}