View Issue Details

IDProjectCategoryView StatusLast Update
0015257phplist applicationPlugin APIpublic19-04-10 17:17
ReporterCS2 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version2.10.9 
Target Version2.10.12Fixed in Version2.10.12 
Summary0015257: Incorrect link text used in sidebar menu
DescriptionIn the admin/connect.php page where it creates the sidebar menu at line 472 it uses this code to create the plugin link:
if (sizeof($GLOBALS["plugins"])) {
    $html .= $spb . "<hr/>" . $spe;
    foreach ($GLOBALS["plugins"] as $pluginName => $plugin) {
        $html .= $spb . PageLink2("main&pi=$pluginName", $pluginName) . $spe;
    }
}

This works fine for the link, but the link text will always be the plugin name instead of the plugin's name property (e.g. plugin name = "helloworld" the name property = "Hello World").
Additional InformationHere is my corrected code:
if (sizeof($GLOBALS["plugins"])) {
    $html .= $spb . "<hr/>" . $spe;
    foreach ($GLOBALS["plugins"] as $pluginName => $plugin) {
      $pluginDesc = $plugin->name;
        $html .= $spb . PageLink2("main&pi=$pluginName", $pluginDesc) . $spe;
    }
}

TagsNo tags attached.

Relationships

related to 0015256 new Plugin links on 'main' page are broken 

Activities

There are no notes attached to this issue.