Added creation of my_files dir if not existing - refs BT#5987

skala
Yannick Warnier 12 years ago
parent 1eb5c51665
commit 575bb09bee
  1. 7
      main/inc/lib/fckeditor/editor/plugins/ajaxfilemanager/inc/config.base.php

@ -100,6 +100,13 @@ if(!empty($_course['path']) && Security::remove_XSS($_GET['editor'])!="stand_alo
} else {
//my profile
$my_path = UserManager::get_user_picture_path_by_id(api_get_user_id(),'none');
$dir = api_get_path(SYS_CODE_PATH).$my_path['dir'];
if (!is_dir($dir)) {
mkdir($dir);
}
if (!is_dir($dir.'my_files')) {
mkdir($dir.'my_files');
}
$PathChamiloAjaxFileManager = '../../../../../../../main/'.$my_path['dir'].'my_files/';
}
}

Loading…
Cancel
Save