summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/template.php3
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" ';