Skip to content

Commit 4075b1e

Browse files
committed
fix: duplicate menu entry
1 parent 167b368 commit 4075b1e

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
@@ -234,14 +234,6 @@ function plugin_init_formcreator() {
234234

235235
Plugin::registerClass(PluginFormcreatorEntityconfig::class, ['addtabon' => Entity::class]);
236236
}
237-
238-
if (strpos($_SERVER['REQUEST_URI'], 'plugins/formcreator') !== false
239-
|| strpos($_SERVER['REQUEST_URI'], 'central.php') !== false
240-
|| isset($_SESSION['glpiactiveprofile']) &&
241-
$_SESSION['glpiactiveprofile']['interface'] == 'helpdesk') {
242-
// Add specific JavaScript
243-
$PLUGIN_HOOKS['add_javascript']['formcreator'][] = 'js/scripts.js.php';
244-
}
245237
}
246238
}
247239

0 commit comments

Comments
 (0)