From: Chuck Scott Date: Mon, 11 May 2015 19:41:34 +0000 (-0400) Subject: One more time X-Git-Tag: v1.0.0~27 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=8b9624cab5bb17f6fff81ff4abb446eff10fe36d;p=WP-Plugins%2Fglm-member-db.git One more time --- 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);