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:
Rob Hoelz 2014-04-22 22:28:32 -05:00 committed by Andrew Dolgov
parent baaf4c3043
commit 9a6456fa12
1 changed files with 1 additions and 0 deletions

View File

@ -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