For some reason, the theme business isn't being setup properly. In print_generate_node() we use theme_get_setting('logo') which returns "/logo.png". The problem is that elsewhere (e.g. the main page), theme_get_setting('logo') returns "/themes/slate/logo.png", i.e., $theme_object->filename . $settings['logo']. So, somehow we need the print module to operate the same as the main page.
I suspect this is overlooked because it only happens IF:
1. No custom logo in print.module settings. (logo_url is blank)
2. In theme, default_logo is set.
Example theme.inc code:
if ($settings['toggle_logo']) {
if ($settings['default_logo']) {
$settings['logo'] = dirname($theme_object->filename) .'/logo.png';
}
elseif ($settings['logo_path']) {
$settings['logo'] = $settings['logo_path'];
}
}
Comments
Comment #1
peterjohnhartman commentedI'm not sure if this was the most elegant solution, but I added init_theme() in print_generate_node() which solved the problem.
committed to cvs.
Comment #2
deekayen commentedSince you opened this new bug, does that mean it doesn't fix http://drupal.org/node/37295, or is it duplicate?
Comment #3
deekayen commentedcommitted to DRUPAL-4-6, too
Comment #4
(not verified) commented