$extra_info var if used by a plugin repeats for other plugins that come after it $extra_info var if used by a plugin repeats for other plugins that come after it
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

$extra_info var if used by a plugin repeats for other plugins that come after it

Started by donnoman, December 01, 2005, 06:42:20 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

donnoman

$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.

Joachim Müller


Joachim Müller


donnoman

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.

Joachim Müller


donnoman