Stop after first search plugin
The sanity check should have caught any extra ones, but it doesn't hurt to be careful
This commit is contained in:
parent
baaf4c3043
commit
9a6456fa12
|
@ -399,6 +399,7 @@
|
||||||
if ($search) {
|
if ($search) {
|
||||||
foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_SEARCH) as $plugin) {
|
foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_SEARCH) as $plugin) {
|
||||||
list($search_query_part, $search_words) = $plugin->hook_search($search);
|
list($search_query_part, $search_words) = $plugin->hook_search($search);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// fall back in case of no plugins
|
// fall back in case of no plugins
|
||||||
|
|
Loading…
Reference in New Issue