Mailer.php
authorEdward <edward@roojs.com>
Mon, 23 Jul 2018 11:07:20 +0000 (19:07 +0800)
committerEdward <edward@roojs.com>
Mon, 23 Jul 2018 11:07:20 +0000 (19:07 +0800)
Mailer.php

index ef82bed..63ba6b2 100644 (file)
@@ -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");