MDL-57052 course: Missing required file in check_module_updates_since

This commit is contained in:
Juan Leyva 2016-11-19 17:27:01 +00:00
parent b4d6669dd0
commit 0840b3e687

View File

@ -3992,6 +3992,7 @@ function course_check_module_updates_since($cm, $from, $fileareas = array(), $fi
// Check comments.
if (plugin_supports('mod', $cm->modname, FEATURE_COMMENT) and (empty($filter) or in_array('comments', $filter))) {
$updates->comments = (object) array('updated' => false);
require_once($CFG->dirroot . '/comment/lib.php');
require_once($CFG->dirroot . '/comment/locallib.php');
$manager = new comment_manager();
$comments = $manager->get_component_comments_since($course, $context, $component, $from, $cm);