mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
Merge branch 'MDL-38368-master' of git://github.com/FMCorz/moodle
This commit is contained in:
commit
43087d02dd
1 changed files with 2 additions and 1 deletions
|
@ -61,7 +61,8 @@ class mod_folder_renderer extends plugin_renderer_base {
|
||||||
$output .= $this->output->box($this->render(new folder_tree($folder, $cm)),
|
$output .= $this->output->box($this->render(new folder_tree($folder, $cm)),
|
||||||
'generalbox foldertree');
|
'generalbox foldertree');
|
||||||
|
|
||||||
if (has_capability('mod/folder:managefiles', $context)) {
|
// Do not append the edit button on the course page.
|
||||||
|
if ($folder->display != FOLDER_DISPLAY_INLINE && has_capability('mod/folder:managefiles', $context)) {
|
||||||
$output .= $this->output->container(
|
$output .= $this->output->container(
|
||||||
$this->output->single_button(new moodle_url('/mod/folder/edit.php',
|
$this->output->single_button(new moodle_url('/mod/folder/edit.php',
|
||||||
array('id' => $cm->id)), get_string('edit')),
|
array('id' => $cm->id)), get_string('edit')),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue