Skip to content

Commit 06a10e0

Browse files
committed
fix: path detection to load JS
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
1 parent c932ff7 commit 06a10e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ function plugin_init_formcreator() {
293293
}
294294

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

0 commit comments

Comments
 (0)