Permalink
Browse files

changed some assignments to assignment by reference when instantiatin…

…g objects.
  • Loading branch information...
jamiesensei
jamiesensei committed Sep 26, 2006
1 parent a9d22c8 commit 2462a50af3f755b8805bb60cc6bb5dcb80a5f076
Showing with 2 additions and 2 deletions.
  1. +2 −2 course/edit_form.php
View
@@ -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();
@@ -292,7 +292,7 @@ function form_check($fields){
}
$mform->addFormRule('form_check');
- $renderer=$mform->defaultRenderer();
+ $renderer =& $mform->defaultRenderer();
$renderer->addStopFieldsetElements('submit');
?>

0 comments on commit 2462a50

Please sign in to comment.