From 49875bb0ef75b338f6c4e01f5c7f36f5891c8b6a Mon Sep 17 00:00:00 2001 From: Edward Date: Mon, 23 Jul 2018 19:07:20 +0800 Subject: [PATCH] Mailer.php --- Mailer.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Mailer.php b/Mailer.php index ef82bed7..63ba6b26 100644 --- a/Mailer.php +++ b/Mailer.php @@ -110,6 +110,8 @@ class Pman_Core_Mailer { function toData() { + $ts = microtime(true); + $templateFile = $this->template; $args = (array)$this->contents; $content = clone($this->page); @@ -321,14 +323,8 @@ class Pman_Core_Mailer { $pg = $ff->page; - $ts = microtime(true); - $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"); -- 2.39.2