forum.coppermine-gallery.net

Dev Board => cpg1.4 Testing/Bugs => cpg1.4 Testing/Bugs: FIXED/CLOSED => Topic started by: donnoman on December 01, 2005, 06:42:20 am

Title: $extra_info var if used by a plugin repeats for other plugins that come after it
Post by: donnoman on December 01, 2005, 06:42:20 am
$extra_info var if used by a plugin repeats for other plugins that come after it in pluginmgr.php.

I also think $extra should only be displayed for installed plugins. That would allow for plugin related links so we wouldn't have to usurp space on the admin menu, unless we really wanted to.

the var should be changed to $extra to match the other vars allowed in configuration.php, and it should be cleared as the $author var is.

There is no official documentation for the $extra_info var, and it's not used in any of the samples, I think we can safely change its behavior in a maintenance release.

If another dev has time or inclination your more than welcome to tackle it, otherwise I'll tackle it when I get a chance.
Title: Re: $extra_info var if used by a plugin repeats for other plugins that come afte
Post by: Joachim Müller on January 25, 2006, 09:29:17 am
*bump*
Title: Re: $extra_info var if used by a plugin repeats for other plugins that come afte
Post by: Joachim Müller on August 10, 2006, 09:01:48 am
Bumping thread to top once more.
Title: Re: $extra_info var if used by a plugin repeats for other plugins that come after it
Post by: donnoman on August 12, 2006, 08:22:15 am
There are actually two variables that have this broken behavior.

$extra_info and $install_info

The variables weren't being cleared as coppermine looped through the configurations.

The intent of these optional strings appears to be to allow plugin writers to add extra content with the plugin entry on pluginmgr.php.

I've committed a fix that includes some cosmetic changes and a sample implementation of these strings with the sample plugin into devel. 

If there's no objection I can commit the same changes to stable. This is a bugfix and some minor cosmetic changes, not a new feature.
Title: Re: $extra_info var if used by a plugin repeats for other plugins that come afte
Post by: Joachim Müller on August 13, 2006, 02:57:08 pm
Yes, please go ahead.
Title: Re: $extra_info var if used by a plugin repeats for other plugins that come after it
Post by: donnoman on August 13, 2006, 08:27:37 pm
stable comitted.