Skip to content
Code-Schnipsel Gruppen Projekte
Bestätigt Commit 42bfef7e erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

feat: #11

Übergeordneter 833b9cd4
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
......@@ -7,7 +7,7 @@
/**
* Smart function for the smarty {menu} function
*
* {menu menuId=ID menuDesign=QUI\Class\Menu\Control}
* {menu id=ID control=QUI\Class\Menu\Control}
*/
class Smarty
{
......@@ -29,7 +29,7 @@ public static function menu($params, $smarty): string
return '';
}
$menuId = $params['menuId'];
$menuId = $params['id'];
$cacheName = Handler::getMenuCacheName($menuId, $Project);
try {
......@@ -38,8 +38,8 @@ public static function menu($params, $smarty): string
}
try {
$Menu = QUI\Menu\Independent\Handler::getMenu($params['menuId']);
$Control = new $params['menuDesign']($Menu);
$Menu = QUI\Menu\Independent\Handler::getMenu($params['id']);
$Control = new $params['control']($Menu);
} catch (QUI\Exception $Exception) {
QUI\System\Log::addError($Exception->getMessage());
return '';
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren