fix variables on update
[Pman.Core] / Mailer.php
index af62173..2b3c274 100644 (file)
@@ -408,10 +408,11 @@ class Pman_Core_Mailer {
             } else {
                 $conv = $urls[$url];
             }
-            
+            $img->setAttribute('origsrc', $url);
             $img->setAttribute('src', 'cid:' . $conv['contentid']);
         }
         
+        
         return $dom->saveHTML();
         
     }
@@ -616,8 +617,7 @@ class Pman_Core_Mailer {
     
     function mapurl($in)
     {
-        
-        foreach($this->urlmap as $o=>$n) {
+         foreach($this->urlmap as $o=>$n) {
             if (strpos($in,$o) === 0) {
                 $ret =$n . substr($in,strlen($o));
                 $this->log("mapURL in $in = $ret");