Skip to content

Commit 42dd84e

Browse files
committed
refactor: use constant
1 parent 52a9fc2 commit 42dd84e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

setup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ function plugin_formcreator_hook(): void {
337337
Session::getCurrentInterface() == 'helpdesk') {
338338

339339
// Add specific JavaScript
340-
$PLUGIN_HOOKS['add_javascript']['formcreator'][] = 'js/scripts.js';
340+
$PLUGIN_HOOKS[Hooks::ADD_JAVASCRIPT]['formcreator'][] = 'js/scripts.js';
341341
}
342342

343343
if (isset($_SESSION['glpiactiveentities_string'])) {

0 commit comments

Comments
 (0)