From 495a03ae9d813cae238560ca5f7634252b3ad46b Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 13 Apr 2005 17:59:39 +0000 Subject: - Patch #12794 by assimonds: make sure the node module is optional. --- includes/theme.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/theme.inc b/includes/theme.inc index 7e86c9273..c9591713a 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -241,8 +241,10 @@ function theme_get_settings($key = NULL) { 'toggle_comment_user_picture' => 0, ); - foreach (node_list() as $type) { - $defaults['toggle_node_info_' . $type] = 1; + if (module_exist('node')) { + foreach (node_list() as $type) { + $defaults['toggle_node_info_' . $type] = 1; + } } $settings = array_merge($defaults, variable_get('theme_settings', array())); -- cgit v1.2.3