projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
45c9d54
)
Mailer.php
author
Edward
<edward@roojs.com>
Mon, 23 Jul 2018 11:07:20 +0000
(19:07 +0800)
committer
Edward
<edward@roojs.com>
Mon, 23 Jul 2018 11:07:20 +0000
(19:07 +0800)
Mailer.php
patch
|
blob
|
history
diff --git
a/Mailer.php
b/Mailer.php
index
ef82bed
..
63ba6b2
100644
(file)
--- a/
Mailer.php
+++ b/
Mailer.php
@@
-110,6
+110,8
@@
class Pman_Core_Mailer {
function toData()
{
function toData()
{
+ $ts = microtime(true);
+
$templateFile = $this->template;
$args = (array)$this->contents;
$content = clone($this->page);
$templateFile = $this->template;
$args = (array)$this->contents;
$content = clone($this->page);
@@
-321,14
+323,8
@@
class Pman_Core_Mailer {
$pg = $ff->page;
$pg = $ff->page;
- $ts = microtime(true);
-
$email = is_array($email) ? $email : $this->toData();
$email = is_array($email) ? $email : $this->toData();
- $diff = microtime(true) - $ts;
-
- print_r($diff);exit;
-
if (is_a($email, 'PEAR_Error')) {
$pg->addEvent("COREMAILER-FAIL", false, "email toData failed");
if (is_a($email, 'PEAR_Error')) {
$pg->addEvent("COREMAILER-FAIL", false, "email toData failed");