View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0015495 | phpList 3 plugins | General | public | 27-05-10 19:45 | 06-02-19 11:35 |
Reporter | adrian15 | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
Summary | 0015495: Rssmanager hack on sendemaillib cached variable | ||||
Description | This is a workaround so that rssmanager works ok. As long as iWantToProcess function is defined and many other plugin functions, the plugin needs to know the rsstemplate value and the id value (because it expects a message-a-like array). I use $cached variable in order to save both values so that the rsstemplate plugin can read both values when the function iWantToProcess is called. Probably it can be improved but the code does work and does not make the current code too much complex. | ||||
Additional Information | Based on revision 1703. | ||||
Tags | No tags attached. | ||||
child of | 0015498 | new | Rss manager is totally broken on svn |
27-05-10 19:45
|
G07_rssmanager_sendemaillib_cache_fix.patch (1,085 bytes)
diff -urN rssfixes_G06_plugins_sendemaillib_ProcessSuccesFailure_check_fix/lists/admin/sendemaillib.php rssfixes_G07_rssmanager_sendemaillib_cache_fix/lists/admin/sendemaillib.php --- rssfixes_G06_plugins_sendemaillib_ProcessSuccesFailure_check_fix/lists/admin/sendemaillib.php 2010-05-17 07:56:20.000000000 +0200 +++ rssfixes_G07_rssmanager_sendemaillib_cache_fix/lists/admin/sendemaillib.php 2010-05-17 08:40:08.000000000 +0200 @@ -33,6 +33,8 @@ $message = Sql_query("select * from {$GLOBALS["tables"]["message"]} where id = $messageid"); $cached[$messageid] = array(); $message = Sql_fetch_array($message); + $cached[$messageid]["rsstemplate"] = $message["rsstemplate"]; # Hack so that rssmanager plugin works ok. TODO: To be improved. + $cached[$messageid]["id"] = $message["id"]; # Hack so that rssmanager plugin works ok. TODO: To be improved. if (ereg("([^ ]+@[^ ]+)",$message["fromfield"],$regs)) { # if there is an email in the from, rewrite it as "name <email>" $message["fromfield"] = ereg_replace($regs[0],"",$message["fromfield"]); |
Date Modified | Username | Field | Change |
---|---|---|---|
27-05-10 19:45 | adrian15 | New Issue | |
27-05-10 19:45 | adrian15 | File Added: G07_rssmanager_sendemaillib_cache_fix.patch | |
27-05-10 20:06 | 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 |