MDL-51306 mod_folder: Use context_module to find details
renderable should not be used for extracting details. Use cm to get context and dir information
This commit is contained in:
committed by
David Monllao
parent
985dca606f
commit
cd6e7e0da0
@@ -67,7 +67,7 @@ class mod_folder_renderer extends plugin_renderer_base {
|
||||
// Do not append the edit button on the course page.
|
||||
if ($folder->display != FOLDER_DISPLAY_INLINE) {
|
||||
$containercontents = '';
|
||||
$downloadable = folder_archive_available($folder, $foldertree);
|
||||
$downloadable = folder_archive_available($folder, $cm);
|
||||
|
||||
if ($downloadable) {
|
||||
$containercontents .= $this->output->single_button(
|
||||
|
||||
Reference in New Issue
Block a user