Merge branch 'MDL-71324-master' of git://github.com/lucaboesch/moodle
This commit is contained in:
@@ -89,7 +89,8 @@ class cmitem implements renderable, templatable {
|
||||
$data = new stdClass();
|
||||
$data->cms = [];
|
||||
|
||||
$showactivityconditions = $course->showcompletionconditions == COMPLETION_SHOW_CONDITIONS;
|
||||
$completionenabled = $course->enablecompletion == COMPLETION_ENABLED;
|
||||
$showactivityconditions = $completionenabled && $course->showcompletionconditions == COMPLETION_SHOW_CONDITIONS;
|
||||
$showactivitydates = !empty($course->showactivitydates);
|
||||
|
||||
// This will apply styles to the course homepage when the activity information output component is displayed.
|
||||
|
||||
Reference in New Issue
Block a user