Skip to content

Commit 17a28a7

Browse files
committed
Prevent useless DB queries on plugin state checks
1 parent 8a62e87 commit 17a28a7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

front/config.form.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@
3838

3939
} else {
4040

41-
$plugin = new Plugin();
42-
if ($plugin->isInstalled("treeview") && $plugin->isActivated("treeview")) {
41+
if (Plugin::isPluginActive("treeview")) {
4342

4443
Html::header(PluginTreeviewConfig::getTypeName(),
4544
$_SERVER['PHP_SELF'],

0 commit comments

Comments
 (0)