Skip to content

Commit

Permalink
fix: path detection to load JS
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Jan 19, 2021
1 parent 2681b9c commit c2fa979
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ function plugin_init_formcreator() {
}

// Load JS and CSS files if we are on a page which need them
if (strpos($_SERVER['REQUEST_URI'], 'plugins/formcreator') !== false
if (strpos($_SERVER['REQUEST_URI'], 'formcreator') !== false
|| strpos($_SERVER['REQUEST_URI'], 'central.php') !== false
|| isset($_SESSION['glpiactiveprofile']) &&
Session::getCurrentInterface() == 'helpdesk') {
Expand Down

0 comments on commit c2fa979

Please sign in to comment.