Skip to content

Commit

Permalink
feat: drop GLPI 9.4 compatibility
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Dec 16, 2020
1 parent 8344296 commit 5054165
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,7 @@

define ('PLUGIN_FORMCREATOR_TEXTAREA_FIX', true);

if (method_exists(Plugin::class, 'getWebDir')) {
define('FORMCREATOR_ROOTDOC', Plugin::getWebDir('formcreator'));
} else {
define('FORMCREATOR_ROOTDOC', $CFG_GLPI['root_doc'] . '/plugins/formcreator');
}
define('FORMCREATOR_ROOTDOC', Plugin::getWebDir('formcreator'));

/**
* Define the plugin's version and informations
Expand Down

0 comments on commit 5054165

Please sign in to comment.