]> git.mjollnir.org Git - moodle.git/commitdiff
Using the new choosecoursefileorimsrepo form element. MDL-10036
authorstronk7 <stronk7>
Mon, 2 Jul 2007 16:54:38 +0000 (16:54 +0000)
committerstronk7 <stronk7>
Mon, 2 Jul 2007 16:54:38 +0000 (16:54 +0000)
Merged from MOODLE_18_STABLE

mod/resource/type/ims/resource.class.php

index 70cbff38c2a3907e724d29094c42772cbe331a70..694d1676f81eef417f2d6cc2fd9ce640e1556183 100644 (file)
@@ -39,6 +39,7 @@
 require_once($CFG->libdir.'/filelib.php');
 require_once($CFG->dirroot.'/mod/resource/type/ims/repository_config.php');
 
+
 /**
 * Extend the base resource class for ims resources
 */
@@ -638,7 +639,7 @@ class resource_ims extends resource_base {
     function setup_elements(&$mform) {
         global $CFG, $RESOURCE_WINDOW_OPTIONS;
 
-        $mform->addElement('choosecoursefile', 'reference', get_string('location'));
+        $mform->addElement('choosecoursefileorimsrepo', 'reference', get_string('location'));
         $mform->addRule('name', null, 'required', null, 'client');
 
         $mform->addElement('header', 'displaysettings', get_string('display', 'resource'));