diff --git a/src/etc/inc/plugins.inc b/src/etc/inc/plugins.inc index 497942211..16e2fe7e4 100644 --- a/src/etc/inc/plugins.inc +++ b/src/etc/inc/plugins.inc @@ -1,7 +1,7 @@ + * Copyright (C) 2016-2024 Franco Fichtner * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -319,9 +319,14 @@ function plugins_configure($hook, $verbose = false, $args = []) function plugins_run($hook, $args = []) { + $glob = '*'; $ret = []; - foreach (plugins_scan() as $name => $path) { + if (substr_count($hook, ':')) { + list($hook, $glob) = explode(':', $hook); + } + + foreach (plugins_scan($glob) as $name => $path) { try { include_once $path; } catch (\Error $e) {