Cleanup: moved HasProvider() out of the Factory

This commit is contained in:
denis.flaven@combodo.com
2023-04-06 14:49:45 +02:00
parent 1982771c28
commit c5640db511
4 changed files with 15 additions and 13 deletions

View File

@@ -35,7 +35,6 @@ use MetaModel;
use UIExtKeyWidget;
use UserRights;
use utils;
use Combodo\iTop\Application\UI\Base\Component\PopoverMenu\NewsroomMenu\NewsroomMenuFactory;
/**
* Class NavigationMenu
@@ -270,7 +269,7 @@ class NavigationMenu extends UIBlock implements iKeyboardShortcut
*/
public function IsNewsroomEnabled(): bool
{
return (MetaModel::GetConfig()->Get('newsroom_enabled') && NewsroomMenuFactory::HasProviders());
return (MetaModel::GetConfig()->Get('newsroom_enabled') && NewsroomMenu::HasProviders());
}
/**