Commit 24600a3a authored by Penny Leach's avatar Penny Leach
Browse files

making submenu items get their langstrings from their artefact lang file

parent 8afdd6a7
......@@ -1041,6 +1041,13 @@ function main_nav() {
foreach ($plugin_menu as &$menu_item) {
$menu_item['link'] = $wwwroot . 'artefact/' . $plugin->name . '/' . $menu_item['link'];
$menu_item['section'] = 'artefact.' . $plugin->name;
if (array_key_exists('submenu', $menu_item)) {
foreach ($menu_item['submenu'] as &$submenuitem) {
if (!array_key_exists('section', $submenuitem)) {
$submenuitem['section'] = 'artefact.' . $plugin->name;
}
}
}
}
$menu = array_merge($menu, $plugin_menu);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment