MDL-22764, fixed required_param parameters, and removed unused global variables
authorDongsheng Cai <unoter@gmail.com>
Mon, 21 Jun 2010 08:20:34 +0000 (08:20 +0000)
committerDongsheng Cai <unoter@gmail.com>
Mon, 21 Jun 2010 08:20:34 +0000 (08:20 +0000)
mod/folder/edit.php
mod/folder/edit_form.php

index 9f3e625..dd526d1 100644 (file)
@@ -28,7 +28,7 @@ require_once("$CFG->dirroot/mod/folder/locallib.php");
 require_once("$CFG->dirroot/mod/folder/edit_form.php");
 require_once("$CFG->dirroot/repository/lib.php");
 
-$id = required_param('id', 0, PARAM_INT);  // Course module ID
+$id = required_param('id', PARAM_INT);  // Course module ID
 
 $cm = get_coursemodule_from_id('folder', $id, 0, false, MUST_EXIST);
 $folder = $DB->get_record('folder', array('id'=>$cm->instance), '*', MUST_EXIST);
index 8bedb51..d1b0a85 100644 (file)
@@ -25,7 +25,6 @@
 
 class mod_folder_edit_form extends moodleform {
     function definition() {
-        global $CFG, $editoroptions;
         $mform =& $this->_form;
         $cmid = $this->_customdata['id'];
         $mform->addElement('hidden', 'id', $cmid);