aboutsummaryrefslogtreecommitdiffstats
path: root/search_rules.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2006-08-15 02:06:06 +0000
committerrvelices <rv-github@modusoptimus.com>2006-08-15 02:06:06 +0000
commit48c6d7e8a4d5b44a6c5c6fa919267d098ed28ee7 (patch)
tree3db23f90be4b39dbe3f25aef0df3c56774106fca /search_rules.php
parentbc1f5319b151c22cd0bed853fc940617e700a29f (diff)
feature 519: quick search (first version)
git-svn-id: http://piwigo.org/svn/trunk@1537 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--search_rules.php28
1 files changed, 20 insertions, 8 deletions
diff --git a/search_rules.php b/search_rules.php
index 51ccaf2c0..d9f0635a5 100644
--- a/search_rules.php
+++ b/search_rules.php
@@ -61,14 +61,26 @@ $template->set_filenames(array('search_rules' => 'search_rules.tpl'));
$search = get_search_array($_GET['search_id']);
-$template->assign_vars(
- array(
- 'INTRODUCTION'
- => 'OR' == $search['mode']
- ? l10n('At least one listed rule must be satisfied.')
- : l10n('Each listed rule must be satisfied.'),
- )
- );
+if (isset($search['q']))
+{
+ $template->assign_block_vars(
+ 'words',
+ array(
+ 'CONTENT' => $search['q']
+ )
+ );
+}
+else
+{
+ $template->assign_vars(
+ array(
+ 'INTRODUCTION'
+ => 'OR' == $search['mode']
+ ? l10n('At least one listed rule must be satisfied.')
+ : l10n('Each listed rule must be satisfied.'),
+ )
+ );
+}
if (isset($search['fields']['allwords']))
{