Merge branch 'MDL-35226-master' of git://github.com/ankitagarwal/moodle
This commit is contained in:
@@ -376,7 +376,7 @@ if ($action === 'delete') {
|
||||
4. Print out the object which contains all the try info
|
||||
|
||||
**************************************************************************/
|
||||
echo $lessonoutput->header($lesson, $cm, $actionfalse, null, get_string('detailedstats', 'lesson'));
|
||||
echo $lessonoutput->header($lesson, $cm, $action, false, null, get_string('detailedstats', 'lesson'));
|
||||
|
||||
$course_context = context_course::instance($course->id);
|
||||
if (has_capability('gradereport/grader:view', $course_context) && has_capability('moodle/grade:viewall', $course_context)) {
|
||||
|
||||
+1
-1
@@ -73,7 +73,7 @@ if ($userhasgrade && !$lesson->retake) {
|
||||
/// Check for high scores
|
||||
if (!$canmanage) {
|
||||
if (!$lesson->is_accessible()) { // Deadline restrictions
|
||||
echo $lessonoutput->header($lesson, $cm, '', false, null, get_string('lessonnotready2', 'lesson'));
|
||||
echo $lessonoutput->header($lesson, $cm, '', false, null, get_string('notavailable'));
|
||||
if ($lesson->deadline != 0 && time() > $lesson->deadline) {
|
||||
echo $lessonoutput->lesson_inaccessible(get_string('lessonclosed', 'lesson', userdate($lesson->deadline)));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user