]> git.mjollnir.org Git - moodle.git/commitdiff
changed some assignments to assignment by reference when instantiating objects.
authorjamiesensei <jamiesensei>
Tue, 26 Sep 2006 11:13:51 +0000 (11:13 +0000)
committerjamiesensei <jamiesensei>
Tue, 26 Sep 2006 11:13:51 +0000 (11:13 +0000)
course/edit_form.php

index 9c596355f1e162a16d4a90b292bf656ffba03e27..452a6dce388ba0c79dc56a0b41c903b7828e6210 100644 (file)
@@ -1,7 +1,7 @@
 <?php
     include_once $CFG->libdir.'/formslib.php';
 
-    $mform = new moodleform('edit_course', 'post', 'edit2.php');
+    $mform =& new moodleform('edit_course', 'post', 'edit2.php');
     $mform->addElement('header','general', get_string("general"));
     if (has_capability('moodle/course:create', get_context_instance(CONTEXT_COURSECAT, $default->category))) { 
         $displaylist = array();
     }
     $mform->addFormRule('form_check');
 
-    $renderer=$mform->defaultRenderer();
+    $renderer =& $mform->defaultRenderer();
     $renderer->addStopFieldsetElements('submit');
 
 ?>