NotifySend.php
authorChris <chris@roojs.com>
Fri, 25 May 2012 09:47:48 +0000 (17:47 +0800)
committerChris <chris@roojs.com>
Fri, 25 May 2012 09:47:48 +0000 (17:47 +0800)
NotifySend.php

index 23a2f70..a7af244 100644 (file)
@@ -395,6 +395,12 @@ class Pman_Core_NotifySend extends Pman
      **/
     function makeEmail($object, $rcpt, $last_sent_date, $notify, $force =false)
     {
+        $m = 'notify'. $notify->evtype;
+        if (!empty($notify->evtype) && method_exists($object,'notify'. $notify->evtype)) {
+            $object->$m($rcpt, $last_sent_date, $notify, $force)
+        }
+                
+        
         return $object->toEmail($rcpt, $last_sent_date, $notify, $force);
     }