Skip to content

Commit 7bbc0dc

Browse files
committed
do no load disabled plugins in /bin/plugin.php
1 parent 5a95f2f commit 7bbc0dc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bin/plugin.php

+2
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ protected function listPlugins() {
8989
* @return \dokuwiki\Extension\CLIPlugin|null
9090
*/
9191
protected function loadPlugin($name) {
92+
if(plugin_isdisabled($name)) return null;
93+
9294
// execute the plugin CLI
9395
$class = "cli_plugin_$name";
9496
if(class_exists($class)) {

0 commit comments

Comments
 (0)