Skip to content

Commit 57caa39

Browse files
Fix illegal function call in PHP5.3
1 parent 3681f84 commit 57caa39

File tree

1 file changed

+2
-1
lines changed
  • cloudinary-image-management-and-manipulation-in-the-cloud-cdn

1 file changed

+2
-1
lines changed

cloudinary-image-management-and-manipulation-in-the-cloud-cdn/cloudinary.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,8 @@ public function upload_to_cloudinary($attachment_id, $migrate)
685685
$attachment = get_post($attachment_id);
686686

687687
if (!empty($md)) {
688-
$full_path = wp_upload_dir()['basedir'].DIRECTORY_SEPARATOR.$md['file'];
688+
$wp_upload_dir = wp_upload_dir();
689+
$full_path = $wp_upload_dir['basedir'] . DIRECTORY_SEPARATOR . $md['file'];
689690
} else {
690691
$full_path = $attachment->guid;
691692
if (empty($full_path)) {

0 commit comments

Comments
 (0)