Browse Source

[svn r12801] Converted octal string to decimal prior to passing it to chmod()

Yannick Warnier 17 years ago
parent
commit
c83490f211
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main/newscorm/learnpath.class.php

+ 1 - 1
main/newscorm/learnpath.class.php

@@ -6712,7 +6712,7 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '')
 			$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);
 			$perm = api_get_setting('permissions_for_new_directories');
-			$perm = (!empty($perm)?$perm:'0770');
+			$perm = octdec(!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);
 		}