diff --git a/mailsystem.theme.inc b/mailsystem.theme.inc index 6e91744..0e5c0dc 100644 --- a/mailsystem.theme.inc +++ b/mailsystem.theme.inc @@ -46,10 +46,10 @@ function mailsystem_theme_theme_registry_alter(&$theme_registry) { // Include template files to let _theme_load_registry add preprocess // functions. - include_once(drupal_get_path('theme', $theme->name) . '/template.php'); foreach ($base_theme as $base) { include_once(drupal_get_path('theme', $base->name) . '/template.php'); } + include_once(drupal_get_path('theme', $theme->name) . '/template.php'); // Get the theme_registry cache. $cache = _theme_load_registry($theme, $base_theme, $theme_engine);