]> git.mjollnir.org Git - moodle.git/commitdiff
A hack to fix bug 1488. html editor needs $course object defined. Should perhaps...
authorgustav_delius <gustav_delius>
Sat, 29 May 2004 16:24:38 +0000 (16:24 +0000)
committergustav_delius <gustav_delius>
Sat, 29 May 2004 16:24:38 +0000 (16:24 +0000)
calendar/event_edit.html
calendar/event_new.html

index 18c036b6ba94e376c5d09812e2ba600161773dd3..8bd4464ccae2f7cee38fc2f62f7789b67d674116 100644 (file)
@@ -1,3 +1,7 @@
+<?php
+    // The following is a hack to fix bug 1488
+    $course = get_record('course', 'id', ($form->courseid) ? $form->courseid : $site->id);
+?>
 <form method="post" action="event.php" name="edit">
 <table cellpadding=5>
   <tr>
index 7fec77dcdac8025d4c1da18a74bc3e79d760fd79..2f18dc06544b42e3207a010cbcd38c3873edcd01 100644 (file)
@@ -1,3 +1,7 @@
+<?php
+    // The following is a hack to fix bug 1488
+    $course = get_record('course', 'id', ($form->courseid) ? $form->courseid : $site->id);
+?>
 <form method="post" action="event.php" name="new">
 <table cellpadding=5>
   <tr>