| @@ 198-200 (lines=3) @@ | ||
| 195 | ||
| 196 | $ok = ($revision !== false); |
|
| 197 | ||
| 198 | if ($ok && $newData) { |
|
| 199 | $ok = move_uploaded_file($_FILES['document']['tmp_name'][0], $preferences['upload.folder'] . $documentDestination); |
|
| 200 | } |
|
| 201 | ||
| 202 | if ($ok) { |
|
| 203 | $delivery->set('current_revision_id', $revision['id']); |
|
| @@ 343-345 (lines=3) @@ | ||
| 340 | ||
| 341 | $ok = ($document !== false); |
|
| 342 | ||
| 343 | if ($ok && $newData) { |
|
| 344 | $ok = move_uploaded_file($_FILES['document']['tmp_name'][0], $preferences['upload.folder'] . $documentDestination); |
|
| 345 | } |
|
| 346 | ||
| 347 | if ($ok) { |
|
| 348 | $revision->set('original_document_id', $document['id']); |
|