From 8b9624cab5bb17f6fff81ff4abb446eff10fe36d Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Mon, 11 May 2015 15:41:34 -0400 Subject: [PATCH] One more time --- classes/glmMemberImportFromConnections.php | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/classes/glmMemberImportFromConnections.php b/classes/glmMemberImportFromConnections.php index 47fa6ecd..f42b137d 100644 --- a/classes/glmMemberImportFromConnections.php +++ b/classes/glmMemberImportFromConnections.php @@ -418,6 +418,12 @@ class GlmMemberImportFromConnections if ($logo === false) { $logo = ''; } + } elseif (isset($m['options']['image'])) { + $imagePath = $m['options']['image']['meta']['path']; + $image = $this->storeImage($imagePath); + if ($image === false) { + $image = ''; + } } $t = date('Y-m-d H:i:s', time()); @@ -513,18 +519,6 @@ class GlmMemberImportFromConnections } } - // Check for additional image -/* - $image = ''; - if (isset($m['options']['image'])) { - $imagePath = $m['options']['image']['meta']['path']; - $image = $this->storeImage($imagePath); - if ($image === false) { - $image = ''; - } - } -*/ - $membersImported++; } @@ -545,7 +539,7 @@ class GlmMemberImportFromConnections // If we have a good image public function storeImage($image) { -echo $image."
"; + // Get new image using temporary file name $newImage = wp_get_image_editor($image); -- 2.17.1