Browse Source

[svn r13216] always create a default group when creating a course

Julian Prud'homme 17 years ago
parent
commit
ca35f0e3d8
1 changed files with 9 additions and 8 deletions
  1. 9 8
      main/inc/lib/add_course.lib.inc.php

+ 9 - 8
main/inc/lib/add_course.lib.inc.php

@@ -1673,7 +1673,15 @@ function fill_Db_course($courseDbName, $courseRepository, $language,$default_doc
 		Course homepage tools for platform admin only
 	-----------------------------------------------------------
 	*/
-
+	
+	
+	/*
+	-----------------------------------------------------------
+		Group tool
+	-----------------------------------------------------------
+	*/
+	api_sql_query("INSERT INTO `".$TABLEGROUPCATEGORIES . "` ( id , title , description , max_student , self_reg_allowed , self_unreg_allowed , groups_per_user , display_order ) VALUES ('2', '".lang2db(get_lang('DefaultGroupCategory')) . "', '', '8', '0', '0', '0', '0');");
+	
 
 	/*
 	-----------------------------------------------------------
@@ -1818,13 +1826,6 @@ function fill_Db_course($courseDbName, $courseRepository, $language,$default_doc
 		api_sql_query("INSERT INTO `".$TABLEQUIZQUESTIONLIST . "` VALUES ( '1', '".lang2db(get_lang('SocraticIrony')) . "', '".lang2db(get_lang('ManyAnswers')) . "', '10', '1', '2','')");
 		api_sql_query("INSERT INTO `".$TABLEQUIZQUESTION . "` VALUES ( '1', '1')");
 
-		/*
-		-----------------------------------------------------------
-			Group tool
-		-----------------------------------------------------------
-		*/
-		api_sql_query("INSERT INTO `".$TABLEGROUPCATEGORIES . "` ( id , title , description , max_student , self_reg_allowed , self_unreg_allowed , groups_per_user , display_order ) VALUES ('2', '".lang2db(get_lang('DefaultGroupCategory')) . "', '', '8', '0', '0', '0', '0');");
-
 
 		/*
 		-----------------------------------------------------------