Skip to content

Commit c4d4792

Browse files
committed
fix: duplicate menu entry
1 parent 0c4736e commit c4d4792

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

setup.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -245,14 +245,6 @@ function plugin_init_formcreator() {
245245

246246
Plugin::registerClass(PluginFormcreatorEntityconfig::class, ['addtabon' => Entity::class]);
247247
}
248-
249-
if (strpos($_SERVER['REQUEST_URI'], 'plugins/formcreator') !== false
250-
|| strpos($_SERVER['REQUEST_URI'], 'central.php') !== false
251-
|| isset($_SESSION['glpiactiveprofile']) &&
252-
$_SESSION['glpiactiveprofile']['interface'] == 'helpdesk') {
253-
// Add specific JavaScript
254-
$PLUGIN_HOOKS['add_javascript']['formcreator'][] = 'js/scripts.js.php';
255-
}
256248
}
257249
}
258250

0 commit comments

Comments
 (0)