diff options
author | Rob Hoelz <[email protected]> | 2014-04-22 22:28:32 -0500 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2014-04-23 04:50:09 +0000 |
commit | 9a6456fa121db77759f5a2cde0f7d7df51cd2bc9 (patch) | |
tree | 5828202cf4b97245947f1b8ed553c99c111e1878 /include | |
parent | baaf4c3043f428ec009dd48b85e1c2d6cb8abee4 (diff) |
Stop after first search plugin
The sanity check should have caught any extra ones, but it doesn't
hurt to be careful
Diffstat (limited to 'include')
-rw-r--r-- | include/functions2.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/functions2.php b/include/functions2.php index 22c602362..959e7154d 100644 --- a/include/functions2.php +++ b/include/functions2.php @@ -399,6 +399,7 @@ if ($search) { foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_SEARCH) as $plugin) { list($search_query_part, $search_words) = $plugin->hook_search($search); + break; } // fall back in case of no plugins |