From: Chuck Scott Date: Mon, 11 May 2015 20:58:07 +0000 (-0400) Subject: About to give up! X-Git-Tag: v1.0.0~19 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=e8d1dc6cbf8392427b494838f524ef91b03c48e5;p=WP-Plugins%2Fglm-member-db.git About to give up! --- 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);