projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2f2865d
)
DataObjects/Core_email.php
author
Alan Knowles
<alan@roojs.com>
Thu, 3 May 2018 02:16:15 +0000
(10:16 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 3 May 2018 02:16:15 +0000
(10:16 +0800)
DataObjects/Core_email.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_email.php
b/DataObjects/Core_email.php
index
5844e6d
..
fb6dd78
100644
(file)
--- a/
DataObjects/Core_email.php
+++ b/
DataObjects/Core_email.php
@@
-539,9
+539,8
@@
Content-Transfer-Encoding: 7bit
file_put_contents($cachePath, $this->bodytext);
return;
}
file_put_contents($cachePath, $this->bodytext);
return;
}
- // use-file
- $mailtext = file_get_contents($this->use_file);
-
+ // use-file -- uses the original template...
+ $mailtext = file_get_contents($this->use_file);
require_once 'Mail/mimeDecode.php';
require_once 'Mail/RFC822.php';
require_once 'Mail/mimeDecode.php';
require_once 'Mail/RFC822.php';
@@
-597,6
+596,17
@@
Content-Transfer-Encoding: 7bit
return false;
}
return false;
}
+ if (!empty($this->use_file)) {
+ $ctime = filemtime($cachePath);
+ $mtime = filemtime($this->use_file);
+ if($ctime >= $mtime){
+ return true;
+ }
+ return false;
+
+ }
+
+
$ctime = filemtime($cachePath);
$mtime = array();
$ctime = filemtime($cachePath);
$mtime = array();