Revert "N°5619 - Hide newsroom menu when no provider"

This reverts commit 647b669eb9.
This commit is contained in:
denis.flaven@combodo.com
2022-11-14 18:28:18 +01:00
parent 647b669eb9
commit d3f8e1c472
2 changed files with 1 additions and 7 deletions

View File

@@ -49,12 +49,6 @@ class NewsroomMenuFactory
return $oMenu;
}
public static function HasProviders()
{
$aProviders = MetaModel::EnumPlugins('iNewsroomProvider');
return count($aProviders) > 0;
}
/**
* Prepare parameters for the newsroom JS widget
*

View File

@@ -48,7 +48,7 @@ class NavigationMenuFactory
{
$oNewsroomMenu = null;
if (MetaModel::GetConfig()->Get('newsroom_enabled') && NewsroomMenuFactory::HasProviders())
if (MetaModel::GetConfig()->Get('newsroom_enabled'))
{
$oNewsroomMenu = NewsroomMenuFactory::MakeNewsroomMenuForNavigationMenu();
}