MDL-70197 navigation: Remove old navigation elements and migrate behat

This commit is contained in:
Mathew May
2021-11-29 15:47:42 +08:00
parent 18b2af60f5
commit b983003e2e
150 changed files with 944 additions and 445 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ class core_question_bank_renderer extends plugin_renderer_base {
foreach ($children as $key => $node) {
$tabs[] = new \tabobject($node->key, $node->action, $node->text);
}
if (empty($active)) {
if (empty($active) && $questionnode->find_active_node()) {
$active = $questionnode->find_active_node()->key;
}
return \html_writer::div(print_tabs([$tabs], $active, null, null, true),