Notify.php
authorAlan <alan@roojs.com>
Fri, 6 Oct 2023 07:11:57 +0000 (15:11 +0800)
committerAlan <alan@roojs.com>
Fri, 6 Oct 2023 07:11:57 +0000 (15:11 +0800)
Notify.php

index d4add2d..64563ce 100644 (file)
@@ -182,9 +182,7 @@ class Pman_Core_Notify extends Pman
         
         $this->generateNotifications();
         
-        $this->assignQueues();
-        
-        //DB_DataObject::debugLevel(1);
+         //DB_DataObject::debugLevel(1);
         $w = DB_DataObject::factory($this->table);
         $total = 0;
         
@@ -195,6 +193,8 @@ class Pman_Core_Notify extends Pman
         
         $this->server = DB_DataObject::Factory('core_notify_server')->getCurrent($this);
         
+        $this->server->assignQueues($this);
+        
         if (!empty($this->evtype)) {
             $w->evtype = $this->evtype;
         }
@@ -377,13 +377,7 @@ class Pman_Core_Notify extends Pman
     
     }
     
-    function assignQueues()
-    {
-        
-        DB_DataObject::Factory('core_notify_server')->assignQueues($this);
-         
-        
-    }
+     
     
     function run($id, $email='', $cmdOpts="")
     {