DataObjects/Core_group_member.php
[Pman.Core] / Mailer.php
index 24a9a70..c4dce68 100644 (file)
@@ -400,36 +400,16 @@ class Pman_Core_Mailer {
             
             if(!array_key_exists($url, $urls)){
                 $conv = $this->fetchImage($url);
+                $urls[$url] = $conv;
                 $this->images[$conv['contentid']] = $conv;
             } else {
                 $conv = $urls[$url];
             }
             
-            
-        }
-        
-        print_R($test);exit;
-        
-        foreach ($imgs as $i=>$img) {
-            $url  = $img->getAttribute('src');
-            if (preg_match('#^cid:#', $url)) {
-                continue;
-            }
-            $me = $img->getAttribute('mailembed');
-            if ($me == 'no') {
-                continue;
-            }
-            
-            $conv = $this->fetchImage($url);
-            $this->images[$conv['contentid']] = $conv;
-            
             $img->setAttribute('src', 'cid:' . $conv['contentid']);
-            
-            
         }
-        return $dom->saveHTML();
-        
         
+        return $dom->saveHTML();
         
     }
     function htmlbodyCssEmbed($html)