summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-04-13 17:59:39 +0000
committerDries Buytaert <dries@buytaert.net>2005-04-13 17:59:39 +0000
commit495a03ae9d813cae238560ca5f7634252b3ad46b (patch)
treedb994128f5aadae46dd2d1bd1efa53631f53d90e
parentb1392fb1438dc48462eb74a4f4a06a946d6fe540 (diff)
downloadbrdo-495a03ae9d813cae238560ca5f7634252b3ad46b.tar.gz
brdo-495a03ae9d813cae238560ca5f7634252b3ad46b.tar.bz2
- Patch #12794 by assimonds: make sure the node module is optional.
-rw-r--r--includes/theme.inc6
1 files 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()));