Merge branch 'MDL-76224-400' of https://github.com/justusdieckmann/moodle into MOODLE_400_STABLE
This commit is contained in:
+2
-2
@@ -29,7 +29,7 @@ $id = optional_param('id',0,PARAM_INT); // Course Module ID, or
|
||||
$l = optional_param('l',0,PARAM_INT); // Label ID
|
||||
|
||||
if ($id) {
|
||||
$PAGE->set_url('/mod/label/index.php', array('id'=>$id));
|
||||
$PAGE->set_url('/mod/label/view.php', array('id' => $id));
|
||||
if (! $cm = get_coursemodule_from_id('label', $id, 0, true)) {
|
||||
print_error('invalidcoursemodule');
|
||||
}
|
||||
@@ -43,7 +43,7 @@ if ($id) {
|
||||
}
|
||||
|
||||
} else {
|
||||
$PAGE->set_url('/mod/label/index.php', array('l'=>$l));
|
||||
$PAGE->set_url('/mod/label/view.php', array('l' => $l));
|
||||
if (! $label = $DB->get_record("label", array("id"=>$l))) {
|
||||
print_error('invalidcoursemodule');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user