main/work/work.lib.php 1 location
|
@@ 819-825 (lines=7) @@
|
| 816 |
|
|
| 817 |
|
$new_dir = $work_data_url.'_DELETED_'.$id; |
| 818 |
|
|
| 819 |
|
if (api_get_setting('permanently_remove_deleted_files') == 'true') { |
| 820 |
|
my_delete($work_data_url); |
| 821 |
|
} else { |
| 822 |
|
if (file_exists($work_data_url)) { |
| 823 |
|
rename($work_data_url, $new_dir); |
| 824 |
|
} |
| 825 |
|
} |
| 826 |
|
|
| 827 |
|
// Gets calendar_id from student_publication_assigment |
| 828 |
|
$sql = "SELECT add_to_calendar FROM $TSTDPUBASG |
main/inc/lib/groupmanager.lib.php 1 location
|
@@ 419-427 (lines=9) @@
|
| 416 |
|
//Deleting from document tool |
| 417 |
|
DocumentManager::delete_document($course_info, $group->secret_directory, $source_directory); |
| 418 |
|
|
| 419 |
|
if (file_exists($source_directory)) { |
| 420 |
|
if (api_get_setting('permanently_remove_deleted_files') == 'true') { |
| 421 |
|
// Delete |
| 422 |
|
my_delete($source_directory); |
| 423 |
|
} else { |
| 424 |
|
// Rename |
| 425 |
|
rename($source_directory, $destination_dir); |
| 426 |
|
} |
| 427 |
|
} |
| 428 |
|
} |
| 429 |
|
} |
| 430 |
|
|