Proyectos de Subversion Moodle

Rev

Rev 864 | Rev 867 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 864 Rev 865
Línea 136... Línea 136...
136
if ($PAGE->course->enablecompletion == '1') {
136
if ($PAGE->course->enablecompletion == '1') {
137
    $extraclasses[] = 'rui-course--enablecompletion';
137
    $extraclasses[] = 'rui-course--enablecompletion';
138
    $header = $PAGE->activityheader;
138
    $header = $PAGE->activityheader;
139
    $headercontent = $header->export_for_template($renderer);
139
    $headercontent = $header->export_for_template($renderer);
140
} elseif ($PAGE->course->enablecompletion == '0') {
140
} elseif ($PAGE->course->enablecompletion == '0') {
141
    if ($currentmod->completionview != 1 && $currentmod->completion != 2) {
-
 
142
        // var_dump($currentmod->completionview);
-
 
143
 
-
 
144
        if ($completiondata->completionstate == COMPLETION_COMPLETE || $completiondata->completionstate == COMPLETION_COMPLETE_PASS) {
-
 
145
            $completed = true;
141
    $completed = true;
146
        }
-
 
147
    }
-
 
148
}
142
}
Línea 149... Línea 143...
149
 
143
 
150
// RUI.
144
// RUI.