Index: modules/system/system.module =================================================================== RCS file: /cvs/drupal/drupal/modules/system/system.module,v retrieving revision 1.348 diff -u -r1.348 system.module --- modules/system/system.module 20 Aug 2006 05:57:40 -0000 1.348 +++ modules/system/system.module 20 Aug 2006 12:28:28 -0000 @@ -1496,17 +1496,16 @@ } if ($key) { + // Switch themes to enable phptemplate theme specific settings + global $theme, $custom_theme; + + $custom_theme = $key; + init_theme(); + // Template-specific settings $function = $themes[$key]->prefix .'_settings'; if (function_exists($function)) { - if ($themes[$key]->template) { - // file is a template or a style of a template - $form['specific'] = array('#type' => 'fieldset', '#title' => t('Engine-specific settings'), '#description' => t('These settings only exist for all the templates and styles based on the %engine theme engine.', array('%engine' => $themes[$key]->prefix))); - } - else { - // file is a theme or a style of a theme - $form['specific'] = array('#type' => 'fieldset', '#title' => t('Theme-specific settings'), '#description' => t('These settings only exist for the %theme theme and all the styles based on it.', array('%theme' => $themes[$key]->prefix))); - } + $form['specific'] = array('#type' => 'fieldset', '#title' => t('Theme-specific settings'), '#description' => t('These settings only exist for the %theme theme and all the styles based on it.', array('%theme' => $theme))); $group = $function(); $form['specific'] = array_merge($form['specific'], (is_array($group) ? $group : array())); }