View Issue Details

IDProjectCategoryView StatusLast Update
0027302mantisbtplug-inspublic2021-03-07 18:29
Reporterdregad Assigned Todregad  
Status closedResolutionfixed 
Target Version2.25.0Fixed in Version2.25.0 
Summary0027302: Force-installed plugins are not registered in order of priority

The $g_plugins_force_installed config allows admins to force installation and protection of plugins. PHPDoc defines it as an array of key/value pairs consisting of the plugin basename and priority, but plugin_register_installed() actually ignores the priority and registers the forced plugins following the order in which they are defined in the config instead.

TagsNo tags attached.


Related Changesets

MantisBT: master 22791438

2020-09-20 09:34:53


Details Diff
Register forced plugins in order of priority

Commit also replaces the legacy db_query() call by a DbQuery object
in function plugin_register_installed().

Fixes 0027302
Affected Issues
mod - core/plugin_api.php Diff File