MDL-8584 forum reset now disabled if using PostgreSQL in Moodle 1.6.x

This commit is contained in:
skodak
2007-03-04 09:08:01 +00:00
parent 7ecfb0c038
commit dab8f5a24d
+7
View File
@@ -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 ':<br />';
print_checkbox('reset_forum_news', 1, true, get_string('namenews','forum'), '', ''); echo '<br />';
print_checkbox('reset_forum_teacher', 1, true, get_string('nameteacher','forum'), '', ''); echo '<br />';