From 9efd5e11cfac7a3ed427ff1465a03e6828d4775d Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Mon, 11 May 2015 16:36:18 -0400 Subject: [PATCH] Stuff --- classes/glmMemberImportFromConnections.php | 4 ++-- config/plugin.ini | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/classes/glmMemberImportFromConnections.php b/classes/glmMemberImportFromConnections.php index 784397c2..11558368 100644 --- a/classes/glmMemberImportFromConnections.php +++ b/classes/glmMemberImportFromConnections.php @@ -569,12 +569,12 @@ class GlmMemberImportFromConnections // If there's an entry in the $sizes array, it means that the image resized to this size if (isset($sizes[$k])) { - +echo GLM_MEMBERS_PLUGIN_IMAGES_PATH.'/'.$sizes[$k]['file'].' => '.GLM_MEMBERS_PLUGIN_IMAGES_PATH.'/'.$k.'/'.$newFilename."
"; // Move resized file to desired direectory rename(GLM_MEMBERS_PLUGIN_IMAGES_PATH.'/'.$sizes[$k]['file'], GLM_MEMBERS_PLUGIN_IMAGES_PATH.'/'.$k.'/'.$newFilename); } else { - +echo GLM_MEMBERS_PLUGIN_IMAGES_PATH.'/'.$newFilename.' => '.GLM_MEMBERS_PLUGIN_IMAGES_PATH.'/'.$k.'/'.$newFilename."
"; // 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); diff --git a/config/plugin.ini b/config/plugin.ini index cc31b0e4..d20b3a1d 100644 --- a/config/plugin.ini +++ b/config/plugin.ini @@ -17,20 +17,20 @@ [imageSizes] large['width'] = 800 -large['height'] = false -large['crop'] = false +large['height'] = null +large['crop'] = null medium['width'] = 400 -medium['height'] = false -medium['crop'] = false +medium['height'] = null +medium['crop'] = null small['width'] = 200 -small['height'] = false -small['crop'] = false +small['height'] = null +small['crop'] = null thumb['width'] = 60 -thumb['height'] = false -thumb['crop'] = false +thumb['height'] = null +thumb['crop'] = null [common] -- 2.17.1