[svn r12800] Updated default dir permissions (using database security parameter)

skala
Yannick Warnier 18 years ago
parent b68716a0bf
commit cdc91f0b0a
  1. 4
      main/newscorm/learnpath.class.php

@ -6711,7 +6711,9 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '')
// remove the possible . at the end of the path
$dest_path_to_lp = substr($this->path, -1) == '.' ? substr($this->path, 0, -1) : $this->path;
$dest_path_to_scorm_folder = str_replace('//','/',$temp_zip_dir.'/scorm/'.$dest_path_to_lp);
mkdir ($dest_path_to_scorm_folder, 0777, true);
$perm = api_get_setting('permissions_for_new_directories');
$perm = (!empty($perm)?$perm:'0770');
mkdir ($dest_path_to_scorm_folder, $perm, true);
$zip_files_dist = copyr($current_course_path.'/scorm/'.$this->path, $dest_path_to_scorm_folder, array('imsmanifest'), $zip_files);
}
//Build a dummy imsmanifest structure. Do not add to the zip yet (we still need it)

Loading…
Cancel
Save