A hack to fix bug 1488. html editor needs $course object defined. Should perhaps be solved differently in the long run.

This commit is contained in:
gustav_delius
2004-05-29 16:19:32 +00:00
parent 1626376373
commit 12f18ea1ab
2 changed files with 8 additions and 0 deletions
+4
View 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>
+4
View 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>