summaryrefslogtreecommitdiff
path: root/modules/popup-dialog.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-12 21:44:19 +0300
committerAndrew Dolgov <[email protected]>2010-11-12 21:44:19 +0300
commite4f7f8dff28ecb902ddd18cfad81a53b321ad086 (patch)
treead255ce4c3d036732e9cf4d2c0aca0ad01895469 /modules/popup-dialog.php
parent353221477b77aa494ff3bb0022ed448a998dd1be (diff)
add support for Sphinx search engine
Diffstat (limited to 'modules/popup-dialog.php')
-rw-r--r--modules/popup-dialog.php22
1 files changed, 14 insertions, 8 deletions
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 "<div class=\"dlgSecCont\">";
- print "<input onkeypress=\"return filterCR(event, search)\"
- name=\"query\" size=\"20\" type=\"search\" value=''>";
+ if (!SPHINX_ENABLE) {
- print " " . __('match on')." ";
+ print "<input onkeypress=\"return filterCR(event, search)\"
+ name=\"query\" size=\"20\" type=\"search\" value=''>";
- $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 "<input onkeypress=\"return filterCR(event, search)\"
+ name=\"query\" size=\"50\" type=\"search\" value=''>";
+ }
print "<br/>".__('Limit search to:')." ";