Mailer.php
authorEdward <edward@roojs.com>
Mon, 8 Dec 2014 08:56:43 +0000 (16:56 +0800)
committerEdward <edward@roojs.com>
Mon, 8 Dec 2014 08:56:43 +0000 (16:56 +0800)
Mailer.php

index 4265843..39c904e 100644 (file)
@@ -379,6 +379,19 @@ class Pman_Core_Mailer {
             }
             $url  = $link->getAttribute('href');
             $file = $ff->rootDir . $url;
+            
+            if (!preg_match('#^http://', $url)) {
+                $file = $ff->rootDir . $url;
+
+                if (!file_exists($file)) {
+                    echo $file;
+                    $link->setAttribute('href', 'missing:' . $file);
+                    continue;
+                }
+            } else {
+               $file = $url;  
+            }
+            
             if (!file_exists($file)) {
                 $link->setAttribute('href', 'missing:' . $file);
                 continue;