MantisBT: master a1453788

Author Committer Branch Timestamp Parent
dregad dregad master 2020-05-25 12:42:31 master bf4efefe
Affected Issues  0027122: 3rd-party plugins cannot use chart.js library bundled with MantisGraph
Changeset

MantisGraph: new method to load chart.js resources

Since MantisBT 2.8.0, MantisGraph only loads chart.js for its own pages.

This prevents other plugins from accessing these resources to publish
their own charts, unless they bundle chart.js themselves.

This commit exposes a dedicated public method include_chartjs() to
include the library, separately from the plugin's standard resources()
function.

Fixes 0027122

mod - plugins/MantisGraph/MantisGraph.php Diff File