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

@@ -106,6 +106,7 @@ while ($row = $db->sql_fetchrow($result))
'IMAGE_SRC' => $phpbb_root_path . 'styles/' . $user->theme['theme_path'] . '/theme/images/portal/' . $template_module['image_src'],
'TITLE' => $template_module['title'],
'CODE' => $template_module['code'],
'MODULE_ID' => $row['module_id'],
));
}
else
@@ -113,6 +114,7 @@ while ($row = $db->sql_fetchrow($result))
$template->assign_block_vars('modules_' . column_num_string($row['module_column']), array(
'TEMPLATE_FILE' => 'portal/modules/' . $template_module,
'IMAGE_SRC' => $phpbb_root_path . 'styles/' . $user->theme['theme_path'] . '/theme/images/portal/' . $row['module_image_src'],
'MODULE_ID' => $row['module_id'],
));
}
unset($template_module);