NOTE:: Before reporting an issue, make sure you are running the latest version, currently 3.3.1

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015257phplist applicationPlugin APIpublic08-04-09 14:4819-04-10 18:17
PlatformOSOS Version
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.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to 0015256new Plugin links on 'main' page are broken 

-  Notes
There are no notes attached to this issue.

Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker