From: moodler Date: Fri, 17 Oct 2003 08:49:00 +0000 (+0000) Subject: Some tidying up of the code to display the comment editing page X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=13152b970b43231c14cdd806eca31e64db320944;p=moodle.git Some tidying up of the code to display the comment editing page --- diff --git a/mod/glossary/comment.php b/mod/glossary/comment.php index 026220a586..4c1024d8a5 100644 --- a/mod/glossary/comment.php +++ b/mod/glossary/comment.php @@ -74,28 +74,14 @@ /// Info boxes if ( $glossary->intro ) { - print_simple_box_start("center","70%"); - echo '

'; - echo $glossary->intro; - echo '

'; - print_simple_box_end(); + print_simple_box(format_text($glossary->intro), "center","70%"); + echo "
"; } - echo "

"; - echo ""; - echo "cellheading2>"; - echo ""; - echo "
"; - echo "$entry->concept"; - echo "
"; - if ($entry->attachment) { - $entry->course = $course->id; - echo "
"; - echo glossary_print_attachments($entry,"html"); - echo "
"; - } - echo format_text($entry->definition, $entry->format); - echo "

"; + glossary_print_entry($course, $cm, $glossary, $entry); + + echo "

"; + echo "
"; /// Input section if ( $action == "delete" ) { @@ -207,4 +193,4 @@ } /// Finish the page print_footer($course); -?> \ No newline at end of file +?>