|
@@ 211-218 (lines=8) @@
|
| 208 |
|
package_put_contents($destination . '/' . $current['filename'], $current['data']); |
| 209 |
|
} |
| 210 |
|
|
| 211 |
|
if (substr($current['filename'], -1, 1) != '/') |
| 212 |
|
$return[] = array( |
| 213 |
|
'filename' => $current['filename'], |
| 214 |
|
'md5' => md5($current['data']), |
| 215 |
|
'preview' => substr($current['data'], 0, 100), |
| 216 |
|
'size' => $current['size'], |
| 217 |
|
'skipped' => false |
| 218 |
|
); |
| 219 |
|
} |
| 220 |
|
|
| 221 |
|
if ($destination !== null && !$single_file) |
|
@@ 425-432 (lines=8) @@
|
| 422 |
|
package_put_contents($destination . '/' . $file_info['filename'], $file_info['data']); |
| 423 |
|
} |
| 424 |
|
|
| 425 |
|
if (substr($file_info['filename'], -1, 1) != '/') |
| 426 |
|
$return[] = array( |
| 427 |
|
'filename' => $file_info['filename'], |
| 428 |
|
'md5' => md5($file_info['data']), |
| 429 |
|
'preview' => substr($file_info['data'], 0, 100), |
| 430 |
|
'size' => $file_info['size'], |
| 431 |
|
'skipped' => false |
| 432 |
|
); |
| 433 |
|
} |
| 434 |
|
|
| 435 |
|
if ($destination !== null && !$single_file) |