From e4f7f8dff28ecb902ddd18cfad81a53b321ad086 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 12 Nov 2010 21:44:19 +0300 Subject: add support for Sphinx search engine --- modules/popup-dialog.php | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'modules/popup-dialog.php') diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php index 9ec575376..8d3c2cee5 100644 --- a/modules/popup-dialog.php +++ b/modules/popup-dialog.php @@ -374,17 +374,23 @@ print "
"; - print ""; + if (!SPHINX_ENABLE) { - print " " . __('match on')." "; + print ""; - $search_fields = array( - "title" => __("Title"), - "content" => __("Content"), - "both" => __("Title or content")); + print " " . __('match on')." "; - print_select_hash("match_on", 3, $search_fields); + $search_fields = array( + "title" => __("Title"), + "content" => __("Content"), + "both" => __("Title or content")); + + print_select_hash("match_on", 3, $search_fields); + } else { + print ""; + } print "
".__('Limit search to:')." "; -- cgit v1.2.3