View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0015491 | phpList 3 plugins | General | public | 27-05-10 19:26 | 06-02-19 11:35 |
Reporter | adrian15 | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | new | Resolution | open | ||
Summary | 0015491: Rss manager plugin 's iWantToProcess function | ||||
Description | This 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 Information | Based on svn revision 1703. | ||||
Tags | No tags attached. | ||||
child of | 0015498 | new | Rss manager is totally broken on svn |
27-05-10 19: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) |
Date Modified | Username | Field | Change |
---|---|---|---|
27-05-10 19:26 | adrian15 | New Issue | |
27-05-10 19:26 | adrian15 | File Added: G03_rssmanager_iWantToProcess_function.patch | |
27-05-10 20:05 | h2b2 | Relationship added | child of 0015498 |
10-05-11 22:57 | michiel | Project | phpList 3 application => rssmanager |
06-02-19 11:35 |
|
Project | rssmanager => phpList 3 plugins |
06-02-19 11:35 |
|
Category | Plugin API => General |