commit 6ff5aa287954b8bc6f5927e2f3e188db987df5b2
Author: Craig Mickelson <cmickelson@webcourseworks.com>
Date:   Mon May 23 09:47:37 2011 -0500

    fix for new by ref

diff --git a/calendar/view.php b/calendar/view.php
index b3245b1..1b2d50a 100644
--- a/calendar/view.php
+++ b/calendar/view.php
@@ -315,7 +315,7 @@ function calendar_show_month_detailed($m, $y, $courses, $groups, $users, $course
 
     $getvars = 'from=month&amp;cal_d='.$day.'&amp;cal_m='.$mon.'&amp;cal_y='.$yr; // For filtering
 
-    $display = &New stdClass;
+    $display = new stdClass();
     $display->minwday = get_user_preferences('calendar_startwday', CALENDAR_STARTING_WEEKDAY);
     $display->maxwday = $display->minwday + 6;
 
diff --git a/course/modedit.php b/course/modedit.php
index 2170034..f8725b9 100644
--- a/course/modedit.php
+++ b/course/modedit.php
@@ -184,7 +184,7 @@
     }
 
     $mformclassname = 'mod_'.$module->name.'_mod_form';
-    $mform =& new $mformclassname($form->instance, $cw->section, $cm);
+    $mform = new $mformclassname($form->instance, $cw->section, $cm);
     $mform->set_data($form);
 
     if ($mform->is_cancelled()) {
