mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-01-14 16:36:51 +01:00
Fix minore
This commit is contained in:
parent
4c4c4080dc
commit
acb0a5da1d
@ -327,7 +327,8 @@ class Modules
|
|||||||
}
|
}
|
||||||
|
|
||||||
$link = (!empty($element['option']) && $element['option'] != 'menu') ? base_path().'/controller.php?id_module='.$element['id'] : 'javascript:;';
|
$link = (!empty($element['option']) && $element['option'] != 'menu') ? base_path().'/controller.php?id_module='.$element['id'] : 'javascript:;';
|
||||||
$title = $element['title'];
|
$module = Module::find($element['id']);
|
||||||
|
$title = $module->name ?? $module->title;
|
||||||
$target = '_self'; // $target = ($element['new'] == 1) ? '_blank' : '_self';
|
$target = '_self'; // $target = ($element['new'] == 1) ? '_blank' : '_self';
|
||||||
$active = ($actual == $title);
|
$active = ($actual == $title);
|
||||||
$show = (self::getPermission($element['id']) != '-' && !empty($element['enabled'])) ? true : false;
|
$show = (self::getPermission($element['id']) != '-' && !empty($element['enabled'])) ? true : false;
|
||||||
|
Loading…
Reference in New Issue
Block a user