hola, necesiot incluiur unas lineas de codigo al archivo moodle.lib en las cuales no tenia problemas en la version 1.8 y 1.9 pero en la 2.0 no se donde ubicarlas. dejo en negritas las lineas que necesito agregar a la 2.0
/// Make sure they can read this activity too, if specified
if (!empty($cm) and !$cm->visible and !has_capability('moodle/course:viewhiddenactivities', $context)) {
redirect($CFG->wwwroot.'/course/view.php?id='.$cm->course, get_string('activityiscurrentlyhidden'));
}
include_once ("$CFG->libdir/sence.lib.php");
$kk = registerSence($COURSE->id,$USER->id);
return; // User is allowed to see this course
Porfavor..!!! help me...!!! muchas gracias ...!!