loads the menu for the CISVUE-Header in the server side instead of the client side

This commit is contained in:
SimonGschnell
2024-09-30 11:14:34 +02:00
parent 0e385e8628
commit 8c6f9d1bc4
3 changed files with 16 additions and 8 deletions
@@ -18,7 +18,7 @@ $this->load->view('templates/FHC-Header', $includesArray);
if (!isset($menu)) {
$ci =& get_instance(); // get CI instance
$ci->load->model('content/Content_model', 'ContentModel');
$result = $ci->ContentModel->getMenu(defined('CIS4_MENU_ENTRY') ? CIS4_MENU_ENTRY : null, get_uid());
$result = $ci->ContentModel->getMenu(null, get_uid());
$menu = getData($result) ?? (object)['childs' => []];
}
?>