|
@@ 112-114 (lines=3) @@
|
| 109 |
|
if ($document->file_type == DOCUMENT) { |
| 110 |
|
$doc_dir = $backup_dir . $document->path; |
| 111 |
|
@mkdir(dirname($doc_dir), $perm_dirs, true); |
| 112 |
|
if (file_exists($course->path . $document->path)) { |
| 113 |
|
copy($course->path . $document->path, $doc_dir); |
| 114 |
|
} |
| 115 |
|
} else { |
| 116 |
|
@mkdir($backup_dir . $document->path, $perm_dirs, true); |
| 117 |
|
} |
|
@@ 165-167 (lines=3) @@
|
| 162 |
|
foreach ($course->resources[RESOURCE_ASSET] as $asset) { |
| 163 |
|
$doc_dir = $backup_dir . $asset->path; |
| 164 |
|
@mkdir(dirname($doc_dir), $perm_dirs, true); |
| 165 |
|
if (file_exists($course->path . $asset->path)) { |
| 166 |
|
copy($course->path . $asset->path, $doc_dir); |
| 167 |
|
} |
| 168 |
|
} |
| 169 |
|
} |
| 170 |
|
|