mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-36357 cleanup - remove double semicolons
This commit is contained in:
parent
a3f3ea2684
commit
0e35ba6ffc
53 changed files with 66 additions and 66 deletions
|
@ -30,7 +30,7 @@ require_once($CFG->dirroot.'/mod/lesson/locallib.php');
|
|||
|
||||
$id = required_param('id', PARAM_INT);
|
||||
|
||||
$cm = get_coursemodule_from_id('lesson', $id, 0, false, MUST_EXIST);;
|
||||
$cm = get_coursemodule_from_id('lesson', $id, 0, false, MUST_EXIST);
|
||||
$course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST);
|
||||
$lesson = new lesson($DB->get_record('lesson', array('id' => $cm->instance), '*', MUST_EXIST));
|
||||
|
||||
|
@ -214,4 +214,4 @@ if ($lesson->review && !$result->correctanswer && !$result->noanswer && !$result
|
|||
echo $OUTPUT->single_button($url, get_string('continue', 'lesson'));
|
||||
}
|
||||
|
||||
echo $lessonoutput->footer();
|
||||
echo $lessonoutput->footer();
|
||||
|
|
|
@ -29,7 +29,7 @@ require_once($CFG->dirroot.'/mod/lesson/locallib.php');
|
|||
|
||||
$id = required_param('id', PARAM_INT);
|
||||
|
||||
$cm = get_coursemodule_from_id('lesson', $id, 0, false, MUST_EXIST);;
|
||||
$cm = get_coursemodule_from_id('lesson', $id, 0, false, MUST_EXIST);
|
||||
$course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST);
|
||||
$lesson = new lesson($DB->get_record('lesson', array('id' => $cm->instance), '*', MUST_EXIST));
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ $id = required_param('id', PARAM_INT); // Course Module ID
|
|||
$qtype = optional_param('qtype', 0, PARAM_INT);
|
||||
$edit = optional_param('edit', false, PARAM_BOOL);
|
||||
|
||||
$cm = get_coursemodule_from_id('lesson', $id, 0, false, MUST_EXIST);;
|
||||
$cm = get_coursemodule_from_id('lesson', $id, 0, false, MUST_EXIST);
|
||||
$course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST);
|
||||
$lesson = new lesson($DB->get_record('lesson', array('id' => $cm->instance), '*', MUST_EXIST));
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ require_once($CFG->libdir.'/eventslib.php');
|
|||
$id = required_param('id', PARAM_INT); // Course Module ID
|
||||
$mode = optional_param('mode', 'display', PARAM_ALPHA);
|
||||
|
||||
$cm = get_coursemodule_from_id('lesson', $id, 0, false, MUST_EXIST);;
|
||||
$cm = get_coursemodule_from_id('lesson', $id, 0, false, MUST_EXIST);
|
||||
$course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST);
|
||||
$lesson = new lesson($DB->get_record('lesson', array('id' => $cm->instance), '*', MUST_EXIST));
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ require_once($CFG->dirroot.'/mod/lesson/locallib.php');
|
|||
|
||||
$id = required_param('id', PARAM_INT);
|
||||
|
||||
$cm = get_coursemodule_from_id('lesson', $id, 0, false, MUST_EXIST);;
|
||||
$cm = get_coursemodule_from_id('lesson', $id, 0, false, MUST_EXIST);
|
||||
$course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST);
|
||||
$lesson = new lesson($DB->get_record('lesson', array('id' => $cm->instance), '*', MUST_EXIST));
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ $id = required_param('id', PARAM_INT); // Course Module ID
|
|||
$mode = optional_param('mode', '', PARAM_ALPHA);
|
||||
$link = optional_param('link', 0, PARAM_INT);
|
||||
|
||||
$cm = get_coursemodule_from_id('lesson', $id, 0, false, MUST_EXIST);;
|
||||
$cm = get_coursemodule_from_id('lesson', $id, 0, false, MUST_EXIST);
|
||||
$course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST);
|
||||
$lesson = new lesson($DB->get_record('lesson', array('id' => $cm->instance), '*', MUST_EXIST));
|
||||
|
||||
|
@ -224,4 +224,4 @@ switch ($mode) {
|
|||
break;
|
||||
}
|
||||
|
||||
echo $lessonoutput->footer();
|
||||
echo $lessonoutput->footer();
|
||||
|
|
|
@ -35,7 +35,7 @@ $pageid = optional_param('pageid', '', PARAM_INT); // Page ID
|
|||
|
||||
$PAGE->set_url('/mod/lesson/import.php', array('id'=>$id, 'pageid'=>$pageid));
|
||||
|
||||
$cm = get_coursemodule_from_id('lesson', $id, 0, false, MUST_EXIST);;
|
||||
$cm = get_coursemodule_from_id('lesson', $id, 0, false, MUST_EXIST);
|
||||
$course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST);
|
||||
$lesson = new lesson($DB->get_record('lesson', array('id' => $cm->instance), '*', MUST_EXIST));
|
||||
|
||||
|
@ -106,4 +106,4 @@ if ($data = $mform->get_data()) {
|
|||
$mform->display();
|
||||
}
|
||||
|
||||
echo $OUTPUT->footer();
|
||||
echo $OUTPUT->footer();
|
||||
|
|
|
@ -36,7 +36,7 @@ $id = required_param('id', PARAM_INT); // Course Module ID
|
|||
$action = required_param('action', PARAM_ALPHA); // Action
|
||||
$pageid = required_param('pageid', PARAM_INT);
|
||||
|
||||
$cm = get_coursemodule_from_id('lesson', $id, 0, false, MUST_EXIST);;
|
||||
$cm = get_coursemodule_from_id('lesson', $id, 0, false, MUST_EXIST);
|
||||
$course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST);
|
||||
$lesson = new lesson($DB->get_record('lesson', array('id' => $cm->instance), '*', MUST_EXIST));
|
||||
|
||||
|
@ -166,4 +166,4 @@ switch ($action) {
|
|||
break;
|
||||
}
|
||||
|
||||
echo $lessonoutput->footer();
|
||||
echo $lessonoutput->footer();
|
||||
|
|
|
@ -948,7 +948,7 @@ class lesson extends lesson_base {
|
|||
require_once($CFG->libdir.'/gradelib.php');
|
||||
require_once($CFG->dirroot.'/calendar/lib.php');
|
||||
|
||||
$DB->delete_records("lesson", array("id"=>$this->properties->id));;
|
||||
$DB->delete_records("lesson", array("id"=>$this->properties->id));
|
||||
$DB->delete_records("lesson_pages", array("lessonid"=>$this->properties->id));
|
||||
$DB->delete_records("lesson_answers", array("lessonid"=>$this->properties->id));
|
||||
$DB->delete_records("lesson_attempts", array("lessonid"=>$this->properties->id));
|
||||
|
|
|
@ -33,7 +33,7 @@ require_once($CFG->dirroot.'/mod/lesson/locallib.php');
|
|||
$id = required_param('id', PARAM_INT); // Course Module ID
|
||||
$printclose = optional_param('printclose', 0, PARAM_INT);
|
||||
|
||||
$cm = get_coursemodule_from_id('lesson', $id, 0, false, MUST_EXIST);;
|
||||
$cm = get_coursemodule_from_id('lesson', $id, 0, false, MUST_EXIST);
|
||||
$course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST);
|
||||
$lesson = new lesson($DB->get_record('lesson', array('id' => $cm->instance), '*', MUST_EXIST));
|
||||
|
||||
|
@ -109,4 +109,4 @@ if ($lesson->mediaclose) {
|
|||
echo '</div>';
|
||||
}
|
||||
|
||||
echo $lessonoutput->footer();
|
||||
echo $lessonoutput->footer();
|
||||
|
|
|
@ -122,7 +122,7 @@ class lesson_page_type_endofbranch extends lesson_page {
|
|||
$answer = new stdClass;
|
||||
}
|
||||
|
||||
$answer->timemodified = time();;
|
||||
$answer->timemodified = time();
|
||||
if (isset($properties->jumpto[0])) {
|
||||
$answer->jumpto = $properties->jumpto[0];
|
||||
}
|
||||
|
@ -230,4 +230,4 @@ class lesson_add_page_form_endofbranch extends lesson_add_page_form_base {
|
|||
|
||||
redirect($CFG->wwwroot."/mod/lesson/edit.php?id=".$PAGE->cm->id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -91,7 +91,7 @@ class lesson_page_type_endofcluster extends lesson_page {
|
|||
$answer = new stdClass;
|
||||
}
|
||||
|
||||
$answer->timemodified = time();;
|
||||
$answer->timemodified = time();
|
||||
if (isset($properties->jumpto[0])) {
|
||||
$answer->jumpto = $properties->jumpto[0];
|
||||
}
|
||||
|
@ -198,4 +198,4 @@ class lesson_add_page_form_endofcluster extends lesson_add_page_form_base {
|
|||
$lesson->add_message(get_string('addedendofcluster', 'lesson'), 'notifysuccess');
|
||||
redirect($CFG->wwwroot.'/mod/lesson/edit.php?id='.$PAGE->cm->id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ $edit = optional_param('edit', -1, PARAM_BOOL);
|
|||
$userpassword = optional_param('userpassword','',PARAM_RAW);
|
||||
$backtocourse = optional_param('backtocourse', false, PARAM_RAW);
|
||||
|
||||
$cm = get_coursemodule_from_id('lesson', $id, 0, false, MUST_EXIST);;
|
||||
$cm = get_coursemodule_from_id('lesson', $id, 0, false, MUST_EXIST);
|
||||
$course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST);
|
||||
$lesson = new lesson($DB->get_record('lesson', array('id' => $cm->instance), '*', MUST_EXIST));
|
||||
|
||||
|
@ -474,7 +474,7 @@ if ($pageid != LESSON_EOL) {
|
|||
} else {
|
||||
if ($lesson->timed) {
|
||||
if ($outoftime == 'normal') {
|
||||
$grade = new stdClass();;
|
||||
$grade = new stdClass();
|
||||
$grade->lessonid = $lesson->id;
|
||||
$grade->userid = $USER->id;
|
||||
$grade->grade = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue