Proyectos de Subversion Moodle

Rev

Rev 1221 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1221 Rev 1233
Línea 33... Línea 33...
33
 
33
 
34
 
34
 
35
$searchURL = false;
35
$searchURL = false;
36
$linkURL = '';
-
 
37
if (!empty($PAGE->course->id)) {
36
$linkURL = '';
38
 
37
if (!empty($PAGE->course->id)) {
Línea 39... Línea 38...
39
    $course = get_course($PAGE->course->id);
38
    $course = get_course($PAGE->course->id);
Línea 40... Línea -...
40
    $course_context = context_course::instance($course->id);
-
 
41
 
39
    $course_context = context_course::instance($course->id);
42
    $notifyeditingon  = empty($_GET['notifyeditingon']) ? 0 : intval($_GET['notifyeditingon'], 10);
40
 
43
 
41
    $notifyeditingon  = empty($_GET['notifyeditingon']) ? 0 : intval($_GET['notifyeditingon'], 10);
44
    if ($notifyeditingon) {
42
 
45
        if (has_capability('moodle/course:manageactivities', $course_context, $USER->id) || has_capability('moodle/course:viewhiddenactivities', $course_context, $USER->id)) {
-
 
46
            $searchURL = false;
43
    if (has_capability('moodle/course:manageactivities', $course_context, $USER->id) || has_capability('moodle/course:viewhiddenactivities', $course_context, $USER->id) || $notifyeditingon) {
Línea 47... Línea -...
47
        } else {
-
 
48
            $searchURL = true;
44
        $searchURL = false;
49
        }
45
    } else {
Línea 50... Línea 46...
50
    }
46
        $searchURL = true;