From 11aad3c90c4c622084117025e6e51ebee053c508 Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Thu, 27 Nov 2014 15:01:52 -0500 Subject: [PATCH] Fix get the user directory within a course in session - refs #7427 --- .../editor/plugins/ajaxfilemanager/inc/config.base.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main/inc/lib/fckeditor/editor/plugins/ajaxfilemanager/inc/config.base.php b/main/inc/lib/fckeditor/editor/plugins/ajaxfilemanager/inc/config.base.php index f9af91e295..1d43394da9 100755 --- a/main/inc/lib/fckeditor/editor/plugins/ajaxfilemanager/inc/config.base.php +++ b/main/inc/lib/fckeditor/editor/plugins/ajaxfilemanager/inc/config.base.php @@ -88,7 +88,12 @@ if(!empty($_course['path']) && $editor != "stand_alone") { if($current_session_id==0) { $PathChamiloAjaxFileManager='../../../../../../../courses/'.$_course['path'].'/document/shared_folder/sf_user_'.api_get_user_id().'/'; } else { - $PathChamiloAjaxFileManager='../../../../../../../courses/'.$_course['path'].'/document/shared_folder_session_'.$current_session_id.'/sf_user_'.api_get_user_id().'/'; + $courseInfo = api_get_course_info(); + $sessionId = api_get_session_id(); + $groupId = api_get_group_id(); + + $PathChamiloAjaxFileManager='../../../../../../../courses/'.$_course['path'].'/document/shared_folder_session_'.$current_session_id.'/sf_user_'.api_get_user_id(); + $PathChamiloAjaxFileManager .= DocumentManager::getDocumentSuffix($courseInfo, $sessionId, $groupId) . '/'; } } }