- Patch #12794 by assimonds: make sure the node module is optional.

4.7.x
Dries Buytaert 2005-04-13 17:59:39 +00:00
parent b1392fb143
commit 495a03ae9d
1 changed files with 4 additions and 2 deletions

View File

@ -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()));