Merge branch 'MDL-33593' of git://github.com/danpoltawski/moodle

This commit is contained in:
Aparup Banerjee
2012-06-13 01:46:17 +08:00
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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();
}
}
}
+1 -1
View File
@@ -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()) {