|
@@ 755-760 (lines=6) @@
|
| 752 |
|
$this->dat['header']['records'][$refParts[0]][$refParts[1]]['filerefs'][] = $fI['ID']; |
| 753 |
|
} |
| 754 |
|
$fileMd5 = md5_file($fI['ID_absFile']); |
| 755 |
|
if (!$this->saveFilesOutsideExportFile) { |
| 756 |
|
// ... and finally add the heavy stuff: |
| 757 |
|
$fileRec['content'] = file_get_contents($fI['ID_absFile']); |
| 758 |
|
} else { |
| 759 |
|
GeneralUtility::upload_copy_move($fI['ID_absFile'], $this->getTemporaryFilesPathForExport() . $fileMd5); |
| 760 |
|
} |
| 761 |
|
$fileRec['content_md5'] = $fileMd5; |
| 762 |
|
$this->dat['files'][$fI['ID']] = $fileRec; |
| 763 |
|
// For soft references, do further processing: |
|
@@ 780-785 (lines=6) @@
|
| 777 |
|
// Setting this data in the header |
| 778 |
|
$this->dat['header']['files'][$RTEoriginal_ID] = $fileRec; |
| 779 |
|
$fileMd5 = md5_file($RTEoriginal_absPath); |
| 780 |
|
if (!$this->saveFilesOutsideExportFile) { |
| 781 |
|
// ... and finally add the heavy stuff: |
| 782 |
|
$fileRec['content'] = file_get_contents($RTEoriginal_absPath); |
| 783 |
|
} else { |
| 784 |
|
GeneralUtility::upload_copy_move($RTEoriginal_absPath, $this->getTemporaryFilesPathForExport() . $fileMd5); |
| 785 |
|
} |
| 786 |
|
$fileRec['content_md5'] = $fileMd5; |
| 787 |
|
$this->dat['files'][$RTEoriginal_ID] = $fileRec; |
| 788 |
|
} else { |