"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "mod/workshop/lib.php" between
moodle-3.6.5.tgz and moodle-3.6.6.tgz

About: moodle is a learning management system for producing Internet-based course Web sites. Latest 3.6 release.

lib.php  (moodle-3.6.5.tgz):lib.php  (moodle-3.6.6.tgz)
skipping to change at line 1860 skipping to change at line 1860
$userid = $USER->id; $userid = $USER->id;
} }
$cm = get_fast_modinfo($event->courseid, $userid)->instances['workshop'][$ev ent->instance]; $cm = get_fast_modinfo($event->courseid, $userid)->instances['workshop'][$ev ent->instance];
if (!$cm->uservisible) { if (!$cm->uservisible) {
// The module is not visible to the user for any reason. // The module is not visible to the user for any reason.
return null; return null;
} }
$completion = new \completion_info($cm->get_course());
$completiondata = $completion->get_data($cm, false, $userid);
if ($completiondata->completionstate != COMPLETION_INCOMPLETE) {
return null;
}
return $factory->create_instance( return $factory->create_instance(
get_string('viewworkshopsummary', 'workshop'), get_string('viewworkshopsummary', 'workshop'),
new \moodle_url('/mod/workshop/view.php', array('id' => $cm->id)), new \moodle_url('/mod/workshop/view.php', array('id' => $cm->id)),
1, 1,
true true
); );
} }
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
// Course reset API // // Course reset API //
 End of changes. 1 change blocks. 
0 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)