Merge branch 'wip-mdl-54977' of https://github.com/rajeshtaneja/moodle
This commit is contained in:
@@ -86,7 +86,7 @@ class block_navigation_renderer extends plugin_renderer_base {
|
||||
continue;
|
||||
}
|
||||
|
||||
$id = $item->id ? $item->id : uniqid();
|
||||
$id = $item->id ? $item->id : html_writer::random_id();
|
||||
$content = $item->get_content();
|
||||
$title = $item->get_title();
|
||||
$ulattr = ['id' => $id . '_group', 'role' => 'group'];
|
||||
|
||||
@@ -75,7 +75,7 @@ class block_settings_renderer extends plugin_renderer_base {
|
||||
}
|
||||
|
||||
$content = $this->output->render($item);
|
||||
$id = $item->id ? $item->id : uniqid();
|
||||
$id = $item->id ? $item->id : html_writer::random_id();
|
||||
$ulattr = ['id' => $id . '_group', 'role' => 'group'];
|
||||
$liattr = ['class' => [$item->get_css_type(), 'depth_'.$depth], 'tabindex' => '-1'];
|
||||
$pattr = ['class' => ['tree_item'], 'role' => 'treeitem'];
|
||||
|
||||
Reference in New Issue
Block a user