MessagePreview.php
authoredward <edward@roojs.com>
Mon, 18 Jul 2016 08:40:28 +0000 (16:40 +0800)
committeredward <edward@roojs.com>
Mon, 18 Jul 2016 08:40:28 +0000 (16:40 +0800)
MessagePreview.php

index 161b830..82cbfad 100644 (file)
@@ -83,9 +83,13 @@ class Pman_Core_MessagePreview extends Pman
         
         $x = new $cls;
         
-        if(!method_exists($x, "test_{$core_email->name}")){
-            $this->jerr("Function test_{$core_email->name} does not exists");
+        $method = "test_{$core_email->name}";
+        
+        if(!method_exists($x, $method)){
+            $this->jerr("{$method} does not exists in {$cls}");
         }
         
+        $x->
+        
     }
 }