Merge branch 'MDL-33593' of git://github.com/danpoltawski/moodle
authorAparup Banerjee <aparup@moodle.com>
Tue, 12 Jun 2012 17:46:17 +0000 (01:46 +0800)
committerAparup Banerjee <aparup@moodle.com>
Tue, 12 Jun 2012 17:46:17 +0000 (01:46 +0800)
course/dnduploadlib.php
course/view.php

index 1b07746..816924b 100644 (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();
     }
-}
\ No newline at end of file
+}
index 9667832..e0f295b 100644 (file)
             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()) {