From 583e63c136d388f8f54222960a0f2c46e4dbc8e9 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Thu, 14 Oct 2004 02:38:33 +0000 Subject: Theme system bug: only show search box if search.module is enabled. --- includes/theme.inc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'includes') diff --git a/includes/theme.inc b/includes/theme.inc index c59a7f11f..f22a775c0 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -233,6 +233,11 @@ function theme_get_settings($key = NULL) { $settings = array_merge($settings, variable_get(str_replace('/', '_', 'theme_'. $key .'_settings'), array())); } + // Only offer search box if search.module is enabled. + if (!module_exist('search')) { + $settings['toggle_search'] = 0; + } + return $settings; } -- cgit v1.2.3