Choose "general" forum now as a default

This commit is contained in:
martin
2002-08-26 10:01:46 +00:00
parent 248e837d24
commit 40b13d9ff4
+4 -1
View File
@@ -14,7 +14,10 @@
$student = strtolower($course->student);
require("$CFG->dirroot/mod/forum/lib.php");
asort($FORUM_TYPES);
choose_from_menu($FORUM_TYPES, "type", $form->type);
if (! $form->type) {
$form->type = "general";
}
choose_from_menu($FORUM_TYPES, "type", $form->type, "");
helpbutton("forumtype", get_string("forumtype", "forum"), "forum");
?>