@@ 609-614 (lines=6) @@ | ||
606 | } else { // rest of images will be an additional |
|
607 | if (file_exists($this->tempDir . $path) and !file_exists('./uploads/shop/products/origin/additional/' . $fileName)) { |
|
608 | $copied = copy($this->tempDir . $path, './uploads/shop/products/origin/additional/' . $fileName); |
|
609 | if ($copied != FALSE) { |
|
610 | $additionalImages[] = [ |
|
611 | 'position' => $i - 1, |
|
612 | 'image_name' => $fileName, |
|
613 | ]; |
|
614 | } |
|
615 | } elseif (file_exists('./uploads/shop/products/origin/additional/' . $fileName)) { |
|
616 | $additionalImages[] = [ |
|
617 | 'position' => $i - 1, |
|
@@ 615-620 (lines=6) @@ | ||
612 | 'image_name' => $fileName, |
|
613 | ]; |
|
614 | } |
|
615 | } elseif (file_exists('./uploads/shop/products/origin/additional/' . $fileName)) { |
|
616 | $additionalImages[] = [ |
|
617 | 'position' => $i - 1, |
|
618 | 'image_name' => $fileName, |
|
619 | ]; |
|
620 | } |
|
621 | } |
|
622 | $i++; |
|
623 | } |