|
|
|
|
@ -309,7 +309,7 @@ function FileUpload( $resourceType, $currentFolder, $sCommand ) |
|
|
|
|
global $group_properties; |
|
|
|
|
$to_group_id = $group_properties['id']; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if ( file_exists( $sFilePath ) ) { |
|
|
|
|
$file_path = substr($sFilePath, strpos($sFilePath, $repository_path) + strlen($repository_path) - 1); |
|
|
|
|
$path = explode('/', $file_path); |
|
|
|
|
$file_name = $path[count($path) - 1]; |
|
|
|
|
@ -321,6 +321,7 @@ function FileUpload( $resourceType, $currentFolder, $sCommand ) |
|
|
|
|
item_property_update_on_folder($_course, $folder_path, $_user['user_id']); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$sFileUrl = CombinePaths( GetResourceTypePath( $resourceType, $sCommand ) , $currentFolder ) ; |
|
|
|
|
$sFileUrl = CombinePaths( $sFileUrl, $sFileName ) ; |
|
|
|
|
|