projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a90f44a
)
Mailer.php
author
Edward
<edward@roojs.com>
Mon, 8 Dec 2014 08:56:43 +0000
(16:56 +0800)
committer
Edward
<edward@roojs.com>
Mon, 8 Dec 2014 08:56:43 +0000
(16:56 +0800)
Mailer.php
patch
|
blob
|
history
diff --git
a/Mailer.php
b/Mailer.php
index
4265843
..
39c904e
100644
(file)
--- a/
Mailer.php
+++ b/
Mailer.php
@@
-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;