MDL-67751 course: include inline folders in list of resources.

This commit is contained in:
Paul Holden
2020-04-15 13:59:36 +01:00
parent 08a62243c5
commit 94de68f9b8
4 changed files with 11 additions and 10 deletions
@@ -52,8 +52,8 @@ class block_activity_modules extends block_list {
$archetypes = array();
foreach($modinfo->cms as $cm) {
// Exclude activities which are not visible or have no link (=label)
if (!$cm->uservisible or !$cm->has_view()) {
// Exclude activities that aren't visible or have no view link (e.g. label). Account for folder being displayed inline.
if (!$cm->uservisible || (!$cm->has_view() && strcmp($cm->modname, 'folder') !== 0)) {
continue;
}
if (array_key_exists($cm->modname, $modfullnames)) {