diff --git a/mod/forum/search.php b/mod/forum/search.php index 0f02417a070..9e590992547 100644 --- a/mod/forum/search.php +++ b/mod/forum/search.php @@ -85,7 +85,7 @@ } if (! $course = get_record("course", "id", $id)) { - print_error("Course id is incorrect."); + error("Course id is incorrect."); } require_course_login($course); @@ -182,14 +182,14 @@ // Replace the simple subject with the three items forum name -> thread name -> subject // (if all three are appropriate) each as a link. if (! $discussion = get_record('forum_discussions', 'id', $post->discussion)) { - print_error('Discussion ID was incorrect'); + error('Discussion ID was incorrect'); } if (! $forum = get_record('forum', 'id', "$discussion->forum")) { - print_error("Could not find forum $discussion->forum"); + error("Could not find forum $discussion->forum"); } if (!$cm = get_coursemodule_from_instance('forum', $forum->id)) { - print_error('Course Module ID was incorrect'); + error('Course Module ID was incorrect'); } $post->subject = highlight($strippedsearch, $post->subject); @@ -261,30 +261,30 @@ function forum_print_big_search_form($course) { echo '
| '.get_string('searchwords', 'forum').':'; + echo ' | '; echo ' | '; - echo ''; + echo ' | '; echo ' |
| '.get_string('searchphrase', 'forum').': | '; - echo ''; + echo ' | '; + echo ' | '; echo ' |
| '.get_string('searchnotwords', 'forum').': | '; - echo ''; + echo ' | '; + echo ' | '; echo ' |
| '.get_string('searchfullwords', 'forum').': | '; - echo ''; + echo ' | '; + echo ' | '; echo ' |
| '.get_string('searchdatefrom', 'forum').': | '; + echo ''.get_string('searchdatefrom', 'forum').' | '; echo ''; if (empty($datefrom)) { $datefromchecked = ''; @@ -307,7 +307,7 @@ function forum_print_big_search_form($course) { echo ' | |
| '.get_string('searchdateto', 'forum').': | '; + echo ''.get_string('searchdateto', 'forum').' | '; echo ''; if (empty($dateto)) { $datetochecked = ''; @@ -330,20 +330,20 @@ function forum_print_big_search_form($course) { echo ' | |
| '.get_string('searchwhichforums', 'forum').': | '; + echo ''; echo ' | '; choose_from_menu(forum_menu_list($course), 'forumid', '', get_string('allforums', 'forum'), ''); echo ' | '; echo '|
| '.get_string('searchsubject', 'forum').': | '; - echo ''; + echo ' | '; + echo ' | '; echo ' |
| '.get_string('searchuser', 'forum').': | '; - echo ''; + echo ' | '; + echo ' | '; echo ' |