From 52cc6c95db6f9b3203e2e53b1559276073dae240 Mon Sep 17 00:00:00 2001 From: Shish Date: Sat, 9 May 2009 05:37:50 -0700 Subject: [PATCH] search term may expand into several querylets --- core/imageboard.pack.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/imageboard.pack.php b/core/imageboard.pack.php index 82413a39..3f339c2b 100644 --- a/core/imageboard.pack.php +++ b/core/imageboard.pack.php @@ -501,7 +501,9 @@ class Image { $stpe = new SearchTermParseEvent(null, $term); send_event($stpe); if($stpe->is_querylet_set()) { - $img_querylets[] = new ImgQuerylet($stpe->get_querylet(), !$negative); + foreach($stpe->get_querylets() as $querylet) { + $img_querylets[] = new ImgQuerylet($querylet, !$negative); + } } else { $term = str_replace("*", "%", $term);