From: Rob Hoelz Date: Wed, 23 Apr 2014 03:28:32 +0000 (-0500) Subject: Stop after first search plugin X-Git-Tag: 1.13~41 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=9a6456fa121db77759f5a2cde0f7d7df51cd2bc9;p=tt-rss.git Stop after first search plugin The sanity check should have caught any extra ones, but it doesn't hurt to be careful --- diff --git a/include/functions2.php b/include/functions2.php index 22c60236..959e7154 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