DataObjects/Core_email.php
authorEdward <edward@roojs.com>
Wed, 9 Jul 2014 05:44:50 +0000 (13:44 +0800)
committerEdward <edward@roojs.com>
Wed, 9 Jul 2014 05:44:50 +0000 (13:44 +0800)
DataObjects/Core_email.php

index 527e4c3..9b938ef 100644 (file)
@@ -199,11 +199,11 @@ class Pman_Core_DataObjects_Core_email extends DB_DataObject
         if(!empty($cfg)){
             $unsubscribe = $cfg ['server_baseurl'] . '/Crm/Unsubscribe/' . $this->id . '/{person.id}';
         }
-        print_r($unsubscribe);exit;
+        
         foreach ($xpath->query('//a[@href]') as $a) { 
             
             $href = $a->getAttribute('href');
-            
+            print_r($href);
             if(preg_match('/#unsubscribe/', $href) && !empty($unsubscribe)){
                 $a->setAttribute('href', $unsubscribe);
                 continue;
@@ -233,7 +233,7 @@ class Pman_Core_DataObjects_Core_email extends DB_DataObject
             $a->setAttribute('href', $l);
             
         }
-        
+        exit;
         if(!empty($unsubscribe)){
             $element = $doc->createElement('img');