]> _ Git - cubist_cms-back.git/commitdiff
wip #3520
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 31 Mar 2020 13:44:21 +0000 (15:44 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 31 Mar 2020 13:44:21 +0000 (15:44 +0200)
src/app/Magic/Menu/Menu.php

index 903e39760553299fc529a65f104b010e89680a71..a212ec7e6044999cf1ff9cfb08d69ed24e02ff3a 100644 (file)
@@ -180,7 +180,7 @@ class Menu extends BaseMenu
         if (!$item->$checkFunction()) {
             return;
         }
-        $parent = $menu->add($item->getTitle(), $item->getHref())->attr('data-name', $item->getName());
+        $parent = $menu->add('<span>' . $item->getTitle() . '</span>', $item->getHref())->attr('data-name', $item->getName());
         if (!$item->$checkFunctionChildren() || !$item->hasChildren()) {
             return;
         }