diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2004-10-14 02:38:33 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2004-10-14 02:38:33 +0000 |
commit | 583e63c136d388f8f54222960a0f2c46e4dbc8e9 (patch) | |
tree | f54f337c1e011ca107a943ca23d5648064843e12 /includes | |
parent | 39e40b5bbda87d910bb38c74e1144683d716a28a (diff) | |
download | brdo-583e63c136d388f8f54222960a0f2c46e4dbc8e9.tar.gz brdo-583e63c136d388f8f54222960a0f2c46e4dbc8e9.tar.bz2 |
Theme system bug: only show search box if search.module is enabled.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/theme.inc | 5 |
1 files changed, 5 insertions, 0 deletions
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; } |