diff options
author | chris <chris@jalakai.co.uk> | 2006-11-01 18:16:56 +0100 |
---|---|---|
committer | chris <chris@jalakai.co.uk> | 2006-11-01 18:16:56 +0100 |
commit | 670ff54e12c5bb83768de6d9aedbf2c910470e22 (patch) | |
tree | f9408bff676907a71c77bd50db75ac66532a68fb | |
parent | 26535e55a2e02592e9756feaaa6c0353d564cff8 (diff) | |
download | rpg-670ff54e12c5bb83768de6d9aedbf2c910470e22.tar.gz rpg-670ff54e12c5bb83768de6d9aedbf2c910470e22.tar.bz2 |
disable search form if search action is disabled, bug#955
darcs-hash:20061101171656-9b6ab-1f3f9de870380a91e907db96d6645d3480951f0e.gz
-rw-r--r-- | inc/template.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/template.php b/inc/template.php index 0321efce3..3593cc602 100644 --- a/inc/template.php +++ b/inc/template.php @@ -592,6 +592,9 @@ function tpl_searchform($ajax=true,$autocomplete=true){ global $lang; global $ACT; + // don't print the search form if search action has been disabled + if (!actionOk('search')) return; + print '<form action="'.wl().'" accept-charset="utf-8" class="search" id="dw__search"><div class="no">'; print '<input type="hidden" name="do" value="search" />'; print '<input type="text" '; |