MantisBT: master 1d96c88c

Author Committer Branch Timestamp Parent
dregad GitHub master 2017-01-25 10:51:10 master d987488b
Affected Issues  0022171: Redefine plugin version requirements
 0022205: Specifying plugin authors as array triggers 'Array to string conversion'
 0022206: Improve documentation for plugins

Merge plugin requirements PR

Prevents plugins getting disabled when bumping MANTIS_VERSION to 2.1.x.
Fixes 0022171

Also contains the following changes and improvements:

  • Add PHPUnit tests for plugin_dependency() function
  • Refactor plugin_version_check() to use PHP's version_compare()
    function instead of custom code
  • Reset MANTIS_VERSION to 2.1.0-dev.
  • Revert MantisCore version requirements in bundled plugins
  • Fix PHP notice when specifying plugin authors as array, fixes 0022205
  • align code with documentation
  • Improved plugin documentation in Developers guide, fixes 0022206


mod - core/constant_inc.php Diff File
mod - core/plugin_api.php Diff File
mod - docbook/Developers_Guide/en-US/Plugins_Building.xml Diff File
mod - docbook/Developers_Guide/en-US/Plugins_Building_Source.xml Diff File
mod - manage_plugin_page.php Diff File
mod - plugins/Gravatar/Gravatar.php Diff File
mod - plugins/MantisCoreFormatting/MantisCoreFormatting.php Diff File
mod - plugins/MantisGraph/MantisGraph.php Diff File
mod - plugins/XmlImportExport/XmlImportExport.php Diff File
mod - tests/Mantis/AllTests.php Diff File
add - tests/Mantis/PluginTest.php Diff File