From 77bf9dd23537494a2f64bb2e1775853b529d7c93 Mon Sep 17 00:00:00 2001 From: Pek5892 Date: Wed, 6 Mar 2024 12:48:51 +0100 Subject: [PATCH] Revert "Fix minore" This reverts commit acb0a5da1d222f3eec6c7978d176299c87eeb043. --- src/Modules.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Modules.php b/src/Modules.php index 64cfddaa4..b2207e739 100755 --- a/src/Modules.php +++ b/src/Modules.php @@ -327,8 +327,7 @@ class Modules } $link = (!empty($element['option']) && $element['option'] != 'menu') ? base_path().'/controller.php?id_module='.$element['id'] : 'javascript:;'; - $module = Module::find($element['id']); - $title = $module->name ?? $module->title; + $title = $element['title']; $target = '_self'; // $target = ($element['new'] == 1) ? '_blank' : '_self'; $active = ($actual == $title); $show = (self::getPermission($element['id']) != '-' && !empty($element['enabled'])) ? true : false;