]> git.wh0rd.org Git - tt-rss.git/commitdiff
Stop after first search plugin
authorRob Hoelz <rob@hoelz.ro>
Wed, 23 Apr 2014 03:28:32 +0000 (22:28 -0500)
committerAndrew Dolgov <noreply@fakecake.org>
Wed, 23 Apr 2014 04:50:09 +0000 (04:50 +0000)
The sanity check should have caught any extra ones, but it doesn't
hurt to be careful

include/functions2.php

index 22c602362ccae81762293100719547c7ad5f1e6a..959e7154deaf62e44df36907b7bbd7f6ccb28e54 100644 (file)
                        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