Added bugfix that prevents duplicate menu items when 2 or more blocks of the same module are added

This commit is contained in:
Marc Alexander
2010-12-31 14:01:49 +00:00
parent a6bf86183f
commit b4ebd132f7
6 changed files with 12 additions and 1 deletions

View File

@@ -94,6 +94,7 @@ class portal_links_module
$template->assign_block_vars('portallinks', array(
'LINK_TITLE' => (isset($user->lang[$links[$i]['title']])) ? $user->lang[$links[$i]['title']] : $links[$i]['title'],
'LINK_URL' => $cur_url,
'MODULE_ID' => $module_id,
));
}
}

View File

@@ -80,6 +80,7 @@ class portal_main_menu_module
{
$template->assign_block_vars('portalmenu', array(
'CAT_TITLE' => (isset($user->lang[$links[$i]['title']])) ? $user->lang[$links[$i]['title']] : $links[$i]['title'],
'MODULE_ID' => $module_id,
));
}
else