From 428aa337b8b53086d2f9671d6b7a9b5d1806d8fc Mon Sep 17 00:00:00 2001 From: stronk7 Date: Wed, 6 Sep 2006 15:30:11 +0000 Subject: [PATCH] Disable regexp searches for MSSQL and Oracle --- mod/forum/search.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/mod/forum/search.php b/mod/forum/search.php index 15a5cd4fab..41cdb9bcdb 100644 --- a/mod/forum/search.php +++ b/mod/forum/search.php @@ -257,7 +257,7 @@ function forum_print_big_search_form($course) { - global $words, $subject, $phrase, $user, $userid, $fullwords, $notwords, $datefrom, $dateto; + global $CFG, $words, $subject, $phrase, $user, $userid, $fullwords, $notwords, $datefrom, $dateto; print_simple_box(get_string('searchforumintro', 'forum'), 'center', '', '', 'searchbox', 'intro'); @@ -287,10 +287,12 @@ function forum_print_big_search_form($course) { echo ''; echo ''; - echo ''; - echo ''.get_string('searchfullwords', 'forum').':'; - echo ''; - echo ''; + if ($CFG->dbtype == 'mysql' || $CFG->dbtype == 'postgres7') { + echo ''; + echo ''.get_string('searchfullwords', 'forum').':'; + echo ''; + echo ''; + } echo ''; echo ''.get_string('searchdatefrom', 'forum').':'; -- 2.39.5