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. --- modules/system/system.module | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'modules/system/system.module') diff --git a/modules/system/system.module b/modules/system/system.module index b955cdd89..dc0b6bba0 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -659,13 +659,16 @@ function system_theme_settings() { // Toggle settings $toggles = array('toggle_name' => t('Site name'), - 'toggle_search' => t('Search box'), 'toggle_slogan' => t('Site slogan'), 'toggle_mission' => t('Mission statement'), 'toggle_primary_links' => t('Primary links'), 'toggle_secondary_links' => t('Secondary links'), 'toggle_node_user_picture' => t('User pictures in posts'), 'toggle_comment_user_picture' => t('User pictures in comments')); + // Only offer search box if search;module is enabled. + if (module_exist('search')) { + $toggles['toggle_search'] = t('Search box'); + } foreach ($toggles as $name => $title) { if ((!$key) || in_array($name, $features)) { -- cgit v1.2.3