Dependency Graph View Issue Relation Graph Vertical
related to child of duplicate of

View Issue Details

IDProjectCategoryView StatusLast Update
0015491phpList 3 plugins[All Projects] Generalpublic06-02-19 11:35
Reporteradrian15 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
Summary0015491: Rss manager plugin 's iWantToProcess function
DescriptionThis is the iWantToProcess function implementation for the Rss manager so that it only gets run when it actually wants to process a message (i.e. the list has a rss frecuency).

Now the canSend function uses iWantToProcess function to check if the rss manager can send a message or not.
Additional InformationBased on svn revision 1703.
TagsNo tags attached.

Activities

27-05-10 18:26

 

G03_rssmanager_iWantToProcess_function.patch (1,366 bytes)
diff -urN rssfixes_G02_added_iWantToProcess_function/lists/admin/plugins/rssmanager.php rssfixes_G03_rssmanager_iWantToProcess_function/lists/admin/plugins/rssmanager.php
--- rssfixes_G02_added_iWantToProcess_function/lists/admin/plugins/rssmanager.php	2010-05-17 06:08:16.000000000 +0200
+++ rssfixes_G03_rssmanager_iWantToProcess_function/lists/admin/plugins/rssmanager.php	2010-05-17 07:04:19.000000000 +0200
@@ -222,7 +222,9 @@
   ############################################################
   # Processqueue
 
-  function canSend ($messagedata, $userdata) {
+  function iWantToProcess ($messagedata, $userdata) {
+
+    if ((!($messagedata["rsstemplate"])) || ($messagedata["rsstemplate"] == "none") ) return false;
     if ($userdata['rssfrequency'] == $messagedata["rsstemplate"]) {
       $rssitems = rssmanager::rssUserHasContent($userdata['id'],$messagedata['id'],$userdata['rssfrequency']);
       $threshold= sprintf('%d',getConfig("rssthreshold"));
@@ -232,6 +234,14 @@
     }
    return $cansend;
   }
+
+
+  function canSend ($messagedata, $userdata) {
+
+    if ((!($messagedata["rsstemplate"])) || ($messagedata["rsstemplate"] == "none") ) return true;
+    return (rssmanager :: iWantToProcess($messagedata,$userdata));
+  }
+
   
   function parseOutgoingTextMessage($messageid, $content, $destination= '', $userdata) {
     if (!$this->enabled)

Issue History

Date Modified Username Field Change
27-05-10 18:26 adrian15 New Issue
27-05-10 18:26 adrian15 File Added: G03_rssmanager_iWantToProcess_function.patch
27-05-10 19:05 h2b2 Relationship added child of 0015498
10-05-11 21:57 michiel Project phpList 3 application => rssmanager
06-02-19 11:35 erion Project rssmanager => phpList 3 plugins
06-02-19 11:35 erion Category Plugin API => General