diff --git a/documentation/changelog.html b/documentation/changelog.html index 214392f9aa..3fee700ddd 100644 --- a/documentation/changelog.html +++ b/documentation/changelog.html @@ -163,6 +163,7 @@
';
- if (strcmp($path,'/audio')===0 or strcmp($path,'/flash')===0 or strcmp($path,'/images')===0) {
+ if (strcmp($path,'/audio')===0 or strcmp($path,'/flash')===0 or strcmp($path,'/images')===0 or strcmp($path,'/shared_folder')===0 or strcmp($path,'/video')===0) {
$modify_icons .= '
';
} else {
$modify_icons .= '
';
diff --git a/main/document/document.php b/main/document/document.php
index 54d197abc4..88aa43f25b 100644
--- a/main/document/document.php
+++ b/main/document/document.php
@@ -1,4 +1,4 @@
- $path)
+ foreach($_POST['path'] as $index => $path)
{
- DocumentManager::delete_document($_course,$path,$base_work_dir);
+ if (strcmp($path,'/audio')===0 or strcmp($path,'/flash')===0 or strcmp($path,'/images')===0 or strcmp($path,'/shared_folder')===0 or strcmp($path,'/video')===0) {
+ continue;
+ } else {
+ $delete_document = DocumentManager::delete_document($_course,$path,$base_work_dir);
+ }
}
+ if (!empty($delete_document)) {
Display::display_confirmation_message(get_lang('DocDeleted'));
+ }
break;
}
}