DataObjects/Core_notify_recur.php
[Pman.Core] / Mailer.php
index 4265843..8601f71 100644 (file)
@@ -379,10 +379,19 @@ class Pman_Core_Mailer {
             }
             $url  = $link->getAttribute('href');
             $file = $ff->rootDir . $url;
-            if (!file_exists($file)) {
-                $link->setAttribute('href', 'missing:' . $file);
-                continue;
+            
+            if (!preg_match('#^http://#', $url)) {
+                $file = $ff->rootDir . $url;
+
+                if (!file_exists($file)) {
+                    echo $file;
+                    $link->setAttribute('href', 'missing:' . $file);
+                    continue;
+                }
+            } else {
+               $file = $url;  
             }
+            
             $par = $link->parentNode;
             $par->removeChild($link);
             $s = $dom->createElement('style');