Skip to content

Commit 4cd4f60

Browse files
committed
fix(category): don't activate plugin to access categories
1 parent 14d3ed7 commit 4cd4f60

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

front/category.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@
3131

3232
include ('../../../inc/includes.php');
3333

34-
Plugin::load('formcreator', true);
34+
// Check if plugin is activated...
35+
if (!(new Plugin())->isActivated('formcreator')) {
36+
Html::displayNotFoundError();
37+
}
3538

3639
$dropdown = new PluginFormcreatorCategory();
3740
include (GLPI_ROOT . "/front/dropdown.common.php");

0 commit comments

Comments
 (0)