diff --git a/mod/dialogue/dialogues.php b/mod/dialogue/dialogues.php index df8d4816b3c..f7d29b8383a 100644 --- a/mod/dialogue/dialogues.php +++ b/mod/dialogue/dialogues.php @@ -28,14 +28,15 @@ error("Course is misconfigured"); } - require_login($course->id); - if (! $dialogue = get_record("dialogue", "id", $cm->instance)) { error("Course module dialogue is incorrect"); } require_login($course->id); + // set up some general variables + $usehtmleditor = can_use_html_editor(); + $navigation = ""; if ($course->category) { $navigation = "id\">$course->shortname ->"; diff --git a/mod/dialogue/locallib.php b/mod/dialogue/locallib.php index 6be792ab15b..56d3fdb7dc9 100644 --- a/mod/dialogue/locallib.php +++ b/mod/dialogue/locallib.php @@ -338,11 +338,12 @@ function dialogue_list_conversations_self($dialogue) { if (! $cm = get_coursemodule_from_instance("dialogue", $dialogue->id, $course->id)) { error("Course Module ID was incorrect"); } - + + // set up some general variables + $usehtmleditor = can_use_html_editor(); + $timenow = time(); $showbutton = false; - $showemoticon = false; // never show emoticons for now - need to close or reload the popup - // window to get the focus into the correct textarea on the second time round echo "