Notify.php
authorAlan Knowles <alan@roojs.com>
Tue, 25 Apr 2017 04:14:12 +0000 (12:14 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 25 Apr 2017 04:14:12 +0000 (12:14 +0800)
Notify.php

index 179b4e8..14359d6 100644 (file)
@@ -152,24 +152,9 @@ class Pman_Core_Notify extends Pman
         //date_default_timezone_set('UTC');
         
         
+        $this->generateNotifications();
         
-        
-       // phpinfo();exit;
-        if (!empty($opts['generate'])) {
-            $w = DB_DataObject::factory($opts['generate']);
-            if (is_a($w, 'DB_DataObject')) {
-                $w->generateNotifications();
-            }
-            exit;
-        }
-     
-     
-        
-        $w = DB_DataObject::factory('core_notify_recur');
-        if (is_a($w, 'DB_DataObject')) {
-            $w->generateNotifications();
-        }
-        
+         
         //DB_DataObject::debugLevel(1);
         $w = DB_DataObject::factory($this->table);
         $total = 0;