From e8d1dc6cbf8392427b494838f524ef91b03c48e5 Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Mon, 11 May 2015 16:58:07 -0400 Subject: [PATCH] About to give up! --- classes/glmMemberImportFromConnections.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/classes/glmMemberImportFromConnections.php b/classes/glmMemberImportFromConnections.php index ec02eae7..8a5fb091 100644 --- a/classes/glmMemberImportFromConnections.php +++ b/classes/glmMemberImportFromConnections.php @@ -550,9 +550,6 @@ class GlmMemberImportFromConnections $fInfo = pathinfo($image); $newFilename = $fInfo['filename'].'_'.time().'.'.$fInfo['extension']; - // Get image temp file name - Not currently using, but should be using to check for resizing sanity - $size = $newImage->get_size(); - // Try to store the image using that file name in the 'original' directory $storedImage = $newImage->save( GLM_MEMBERS_PLUGIN_IMAGES_PATH.'/'.$newFilename ); @@ -571,7 +568,6 @@ class GlmMemberImportFromConnections if (isset($sizes[$k])) { // Move resized file to desired direectory rename(GLM_MEMBERS_PLUGIN_IMAGES_PATH.'/'.$sizes[$k]['file'], GLM_MEMBERS_PLUGIN_IMAGES_PATH.'/'.$k.'/'.$newFilename); - unlink(GLM_MEMBERS_PLUGIN_IMAGES_PATH.'/'.$sizes[$k]['file']); } else { // Image didn't resize to this size, probably because it was smaller than the destination size (silly WP Image Editor class) - so just use the original copy(GLM_MEMBERS_PLUGIN_IMAGES_PATH.'/'.$newFilename, GLM_MEMBERS_PLUGIN_IMAGES_PATH.'/'.$k.'/'.$newFilename); -- 2.17.1