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

Pedro Lozano’s picture

Status: Active » Fixed

Seems like a good improvement. Thanks.

Commited.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

simon_s’s picture

Version: 6.x-1.0 » 6.x-1.x-dev
Priority: Minor » Major
Status: Closed (fixed) » Patch (to be ported)

Hi,

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!