fix for northernlakes
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 31 Jul 2015 18:21:07 +0000 (14:21 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 31 Jul 2015 18:21:07 +0000 (14:21 -0400)
controllers/Import.php

index 635459a..9db9f72 100644 (file)
                             $wpImage = $this->_getAttachmentByName($imgPathInfo['filename']);
                             //echo '<pre>' . print_r($wpImage, true) . '</pre>';
                             if ($wpImage) {
-                                echo '<p>Image found: id '.$wpImage->ID.'</p>';
                                 //$strToReplace = $dom->saveHTML($image);
                                 //echo '<pre>'.htmlspecialchars($strToReplace).'</pre>';
                                 if ($width && $height) {
+                                    echo '<p>Image found: id '.$wpImage->ID.'</p>';
                                     //echo '<p>width: ' . $width . '</p>';
                                     //echo '<p>height: ' . $height . '</p>';
                                     if ($width > 300 || $height > 300) {
                                     //echo htmlspecialchars($dom->saveHTML($image));
                                 }
                             } else {
-                                //echo '<p>no media found</p>';
+                                echo '<p>no media found</p>';
                             }
                         }
                     }