[svn r12679] Fixed missing slash causing uploaded documents to be created as documentmydoc.ppt rather than document/mydoc.ppt

skala
Yannick Warnier 18 years ago
parent 5bd9a19cb1
commit 0e1e48b06c
  1. 4
      main/newscorm/presentation.class.php

@ -57,8 +57,8 @@ class presentation extends learnpath {
$created_dir = create_unexisting_directory($_course,$_user['user_id'],$to_group_id,$to_user_id,$base_work_dir,$dir_name);
move_uploaded_file($file['tmp_name'],$base_work_dir.$file['name']);
$file = $base_work_dir.$file['name'];
move_uploaded_file($file['tmp_name'],$base_work_dir.'/'.$file['name']);
$file = $base_work_dir.'/'.$file['name'];
chmod($file,0777);

Loading…
Cancel
Save