Merge branch 'MDL-40096-25' of git://github.com/damyon/moodle into MOODLE_25_STABLE
This commit is contained in:
@@ -55,7 +55,7 @@ class mod_assign_renderer extends plugin_renderer_base {
|
||||
* @return string
|
||||
*/
|
||||
public function render_assign_files(assign_files $tree) {
|
||||
$this->htmlid = 'assign_files_tree_'.uniqid();
|
||||
$this->htmlid = html_writer::random_id('assign_files_tree');
|
||||
$this->page->requires->js_init_call('M.mod_assign.init_tree', array(true, $this->htmlid));
|
||||
$html = '<div id="'.$this->htmlid.'">';
|
||||
$html .= $this->htmllize_tree($tree, $tree->dir);
|
||||
|
||||
Reference in New Issue
Block a user