Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
fix(ui): back compatibility with GLPI 9.1.2 backport
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Mar 3, 2017
1 parent 6f6f70a commit b80942f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,12 @@ function plugin_init_flyvemdm() {
$PLUGIN_HOOKS['add_css']['flyvemdm'] = 'css/style.css';
}

if (version_compare(GLPI_VERSION, '9.1.2') > 0) {
Html::requireJs('charts');
} else {
// GLPI 9.1.2-backport loads the needed CSS and JS files
// GLPI 9.1.2 official will fail to show graphs
}
Html::requireJs('charts');
$CFG_GLPI['javascript']['plugins']['pluginflyvemdmmenu']['Menu'] = ['charts'];
}
Expand Down

0 comments on commit b80942f

Please sign in to comment.