From: stronk7 Date: Wed, 6 Sep 2006 15:30:11 +0000 (+0000) Subject: Disable regexp searches for MSSQL and Oracle X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=428aa337b8b53086d2f9671d6b7a9b5d1806d8fc;p=moodle.git Disable regexp searches for MSSQL and Oracle --- 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').':';