Skip to content

Commit

Permalink
Add NetgenSiteBundle for default logo check
Browse files Browse the repository at this point in the history
  • Loading branch information
emodric committed Sep 11, 2018
1 parent 6deeef4 commit 951bebb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bundle/DependencyInjection/NetgenAdminUIExtension.php
Expand Up @@ -50,8 +50,10 @@ public function load(array $configs, ContainerBuilder $container)
}

$logoType = $container->getParameter('netgen_admin_ui.logo_type');
if ($logoType === 'default' && class_exists('Netgen\Bundle\MoreBundle\NetgenMoreBundle')) {
$container->setParameter('netgen_admin_ui.logo_type', 'ngadminui');
if ($logoType === 'default') {
if (class_exists('Netgen\Bundle\SiteBundle\NetgenSiteBundle') || class_exists('Netgen\Bundle\MoreBundle\NetgenMoreBundle')) {
$container->setParameter('netgen_admin_ui.logo_type', 'ngadminui');
}
}
}

Expand Down

0 comments on commit 951bebb

Please sign in to comment.