|
@@ -202,7 +202,7 @@ function prepare_course_repository($courseRepository, $courseId)
|
|
mkdir(api_get_path(SYS_COURSE_PATH).$courseRepository . "/document", $perm);
|
|
mkdir(api_get_path(SYS_COURSE_PATH).$courseRepository . "/document", $perm);
|
|
mkdir(api_get_path(SYS_COURSE_PATH).$courseRepository . "/document/images", $perm);
|
|
mkdir(api_get_path(SYS_COURSE_PATH).$courseRepository . "/document/images", $perm);
|
|
mkdir(api_get_path(SYS_COURSE_PATH).$courseRepository . "/document/images/gallery/", $perm);
|
|
mkdir(api_get_path(SYS_COURSE_PATH).$courseRepository . "/document/images/gallery/", $perm);
|
|
- mkdir(api_get_path(SYS_COURSE_PATH).$courseRepository . "/document/images/gallery/shared/", $perm);
|
|
|
|
|
|
+ mkdir(api_get_path(SYS_COURSE_PATH).$courseRepository . "/document/shared_folder/", $perm);
|
|
mkdir(api_get_path(SYS_COURSE_PATH).$courseRepository . "/document/audio", $perm);
|
|
mkdir(api_get_path(SYS_COURSE_PATH).$courseRepository . "/document/audio", $perm);
|
|
mkdir(api_get_path(SYS_COURSE_PATH).$courseRepository . "/document/flash", $perm);
|
|
mkdir(api_get_path(SYS_COURSE_PATH).$courseRepository . "/document/flash", $perm);
|
|
mkdir(api_get_path(SYS_COURSE_PATH).$courseRepository . "/document/video", $perm);
|
|
mkdir(api_get_path(SYS_COURSE_PATH).$courseRepository . "/document/video", $perm);
|
|
@@ -2060,7 +2060,7 @@ function fill_Db_course($courseDbName, $courseRepository, $language,$default_doc
|
|
$example_doc_id = Database :: get_last_insert_id();
|
|
$example_doc_id = Database :: get_last_insert_id();
|
|
api_sql_query("INSERT INTO `".$TABLEITEMPROPERTY . "` (tool,insert_user_id,insert_date,lastedit_date,ref,lastedit_type,lastedit_user_id,to_group_id,to_user_id,visibility) VALUES ('document',1,NOW(),NOW(),$example_doc_id,'DocumentAdded',1,0,NULL,0)", __FILE__, __LINE__);
|
|
api_sql_query("INSERT INTO `".$TABLEITEMPROPERTY . "` (tool,insert_user_id,insert_date,lastedit_date,ref,lastedit_type,lastedit_user_id,to_group_id,to_user_id,visibility) VALUES ('document',1,NOW(),NOW(),$example_doc_id,'DocumentAdded',1,0,NULL,0)", __FILE__, __LINE__);
|
|
|
|
|
|
- api_sql_query("INSERT INTO `".$TABLETOOLDOCUMENT . "`(path,title,filetype,size) VALUES ('/images/gallery/shared','".get_lang('SharedImagesDirectory')."','folder','0')", __FILE__, __LINE__);
|
|
|
|
|
|
+ api_sql_query("INSERT INTO `".$TABLETOOLDOCUMENT . "`(path,title,filetype,size) VALUES ('/shared_folder','".get_lang('SharedDocumentsDirectory')."','folder','0')", __FILE__, __LINE__);
|
|
$example_doc_id = Database :: get_last_insert_id();
|
|
$example_doc_id = Database :: get_last_insert_id();
|
|
api_sql_query("INSERT INTO `".$TABLEITEMPROPERTY . "` (tool,insert_user_id,insert_date,lastedit_date,ref,lastedit_type,lastedit_user_id,to_group_id,to_user_id,visibility) VALUES ('document',1,NOW(),NOW(),$example_doc_id,'DocumentAdded',1,0,NULL,0)", __FILE__, __LINE__);
|
|
api_sql_query("INSERT INTO `".$TABLEITEMPROPERTY . "` (tool,insert_user_id,insert_date,lastedit_date,ref,lastedit_type,lastedit_user_id,to_group_id,to_user_id,visibility) VALUES ('document',1,NOW(),NOW(),$example_doc_id,'DocumentAdded',1,0,NULL,0)", __FILE__, __LINE__);
|
|
|
|
|