From: Steve Sutton Date: Fri, 31 Jul 2015 18:21:07 +0000 (-0400) Subject: fix for northernlakes X-Git-Tag: v0.0.2^2~19 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=9bd4747a3af81c862caecaa9662ab6bd23e11868;p=WP-Plugins%2Fglm-wp-importer.git fix for northernlakes --- diff --git a/controllers/Import.php b/controllers/Import.php index 635459a..9db9f72 100644 --- a/controllers/Import.php +++ b/controllers/Import.php @@ -864,10 +864,10 @@ $wpImage = $this->_getAttachmentByName($imgPathInfo['filename']); //echo '
' . print_r($wpImage, true) . '
'; if ($wpImage) { - echo '

Image found: id '.$wpImage->ID.'

'; //$strToReplace = $dom->saveHTML($image); //echo '
'.htmlspecialchars($strToReplace).'
'; if ($width && $height) { + echo '

Image found: id '.$wpImage->ID.'

'; //echo '

width: ' . $width . '

'; //echo '

height: ' . $height . '

'; if ($width > 300 || $height > 300) { @@ -901,7 +901,7 @@ //echo htmlspecialchars($dom->saveHTML($image)); } } else { - //echo '

no media found

'; + echo '

no media found

'; } } }