If you rename the theme, the code continues to try to load images from the nitobe folder. This can be resolved by changing nitobe_masthead_image_init() to build the masthead image file path from
$header_img = drupal_get_path('theme', 'zymurgy') .'/headers/'. $filename;
to
$header_img = path_to_theme() .'/headers/'. $filename;
or one of the many variants to get the current themes path.
Comments
Comment #1
Pedro Lozano commentedSeems like a good improvement. Thanks.
Commited.
Comment #3
simon_s commentedHi,
inside the nitobe_masthead_image_init() function you should
add:
global $theme_key;and modify:
$conf['theme_nitobe_settings']['nitobe_header_image'] = $header_img;to:
$conf['theme_'.$theme_key.'_settings']['nitobe_header_image'] = $header_img;Otherwise the module doesn't work with subthemes.
Please update and commit. Thanks!