diff --git a/course/dnduploadlib.php b/course/dnduploadlib.php index 1b077461581..816924b3d4e 100644 --- a/course/dnduploadlib.php +++ b/course/dnduploadlib.php @@ -39,7 +39,7 @@ require_once($CFG->dirroot.'/course/lib.php'); function dndupload_add_to_course($course, $modnames) { global $CFG, $PAGE; - $showstatus = optional_param('editingenabled', false, PARAM_BOOL); + $showstatus = optional_param('notifyeditingon', false, PARAM_BOOL); // Get all handlers. $handler = new dndupload_handler($course, $modnames); @@ -671,4 +671,4 @@ class dndupload_ajax_processor { echo json_encode($resp); die(); } -} \ No newline at end of file +} diff --git a/course/view.php b/course/view.php index 9667832ef62..e0f295b466e 100644 --- a/course/view.php +++ b/course/view.php @@ -130,7 +130,7 @@ if ($course->id == SITEID) { redirect($CFG->wwwroot .'/?redirect=0'); } else { - $url = new moodle_url($PAGE->url, array('editingenabled' => 1)); + $url = new moodle_url($PAGE->url, array('notifyeditingon' => 1)); redirect($url); } } else if (($edit == 0) and confirm_sesskey()) {