From dab8f5a24da31f2136de2c3ed70c46fe60bd6ffd Mon Sep 17 00:00:00 2001 From: skodak Date: Sun, 4 Mar 2007 09:08:01 +0000 Subject: [PATCH] MDL-8584 forum reset now disabled if using PostgreSQL in Moodle 1.6.x --- mod/forum/lib.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mod/forum/lib.php b/mod/forum/lib.php index 2005d3b1416..2c0191d2fbc 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -4043,6 +4043,13 @@ function forum_delete_userdata($data, $showfeedback=true) { // Called by course/reset.php function forum_reset_course_form($course) { + global $CFG; + + if ($CFG->dbtype == 'postgres7') { + echo "Forum reset not yet supported for PostgreSQL"; + return; + } + echo get_string('resetforums', 'forum'); echo ':
'; print_checkbox('reset_forum_news', 1, true, get_string('namenews','forum'), '', ''); echo '
'; print_checkbox('reset_forum_teacher', 1, true, get_string('nameteacher','forum'), '', ''); echo '
';