Skip to content

Commit

Permalink
fix: duplicate menu entry
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Aug 28, 2019
1 parent 167b368 commit 4075b1e
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,14 +234,6 @@ function plugin_init_formcreator() {

Plugin::registerClass(PluginFormcreatorEntityconfig::class, ['addtabon' => Entity::class]);
}

if (strpos($_SERVER['REQUEST_URI'], 'plugins/formcreator') !== false
|| strpos($_SERVER['REQUEST_URI'], 'central.php') !== false
|| isset($_SESSION['glpiactiveprofile']) &&
$_SESSION['glpiactiveprofile']['interface'] == 'helpdesk') {
// Add specific JavaScript
$PLUGIN_HOOKS['add_javascript']['formcreator'][] = 'js/scripts.js.php';
}
}
}

Expand Down

0 comments on commit 4075b1e

Please sign in to comment.