[svn r11088] fix a bug in the video upload

skala
Julian Prud'homme 18 years ago
parent 6063faed88
commit 6cdc35578a
  1. 4
      main/inc/lib/fckeditor/editor/filemanager/upload/php/upload.php

@ -160,6 +160,10 @@ if(isset($_SESSION["_course"]["sysCode"]) && api_is_allowed_to_edit()){
$path = "/audio/";
}
if($sType=="video"){
$path = "/video/";
}
$doc_id = add_document($_course, $path.$document_name, 'file', $document_size, $document_name);
api_item_property_update($_course, TOOL_DOCUMENT, $doc_id, 'DocumentCreated', $_user['user_id']);

Loading…
Cancel
Save