View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0015480 | phpList 3 application | Plugin API | public | 17-05-10 16:19 | 22-05-12 12:58 |
Reporter | adrian15 | ||||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | Future developments | ||||
Target Version | Fixed in Version | 2.11.7 | |||
Summary | 0015480: Plugins cannot add their own tabs to Send page fix | ||||
Description | Plugins cannot add their own tabs to Send page. This patch fixes this problem. | ||||
Additional Information | This patch is based on: svn 1703 revision. | ||||
Tags | No tags attached. | ||||
child of | 0015498 | new | phpList 3 plugins | Rss manager is totally broken on svn |
17-05-10 16:19
|
F11_send_tabs_plugins_add_fixed.patch (1,034 bytes)
diff -urN saidi_F10_rss_manager_fix_1/lists/admin/send_core.php saidi_F11_send_tabs_plugins_add_fixed/lists/admin/send_core.php --- saidi_F10_rss_manager_fix_1/lists/admin/send_core.php 2010-05-16 05:14:34.000000000 +0200 +++ saidi_F11_send_tabs_plugins_add_fixed/lists/admin/send_core.php 2010-05-16 10:41:42.000000000 +0200 @@ -1000,6 +1000,17 @@ # $tabs->addTab("Review and Send","$baseurl&tab=Review"); $tabs->addTab($GLOBALS['I18N']->get("Misc"),"$baseurl&tab=Misc"); + ### allow plugins to add tabs + $plugintabs = array(); + foreach ($GLOBALS['plugins'] as $plugin) { + $plugintab = $plugin->sendMessageTab($id,$messagedata); + if ($plugintab) { + $plugintabname = substr(strip_tags($plugin->sendMessageTabTitle()),0,10); + $plugintabs[$plugintabname] = $plugintab; + $tabs->addTab($GLOBALS['I18N']->get($plugintabname),"$baseurl&tab=".urlencode($plugintabname)); + } + } + if ($_GET["tab"]) { $tabs->setCurrent($GLOBALS['I18N']->get($_GET["tab"])); } else { |
|
as far as I'm aware this should be ok now, but reopen if you disagree |