Closed (fixed)
Project:
Nitobe
Version:
6.x-2.1
Component:
Code
Priority:
Normal
Category:
Bug report
Reporter:
Created:
30 Nov 2008 at 20:50 UTC
Updated:
22 Dec 2008 at 12:41 UTC
Jump to comment: Most recent
Subthemes in Drupal 6 make it much easier to maintain custom variations of a theme. I created a subtheme based on Nitobe today and everything worked except for the header images, which continued to be picked up from the Nitobe headers folder.
Changing the function used to discover the theme's path from drupal_get_path('theme', 'nitobe') to path_to_theme() fixes the issue and causes the images to be pulled from a headers folder located in the subtheme directory.
The attached patch takes it a hair further by first checking to see if path_to_theme()/headers exists, and if not falling back on the original call to drupal_get_path.
| Comment | File | Size | Author |
|---|---|---|---|
| nitobe_utils.php_.patch | 841 bytes | samc |
Comments
Comment #1
Anonymous (not verified) commentedThis change is committed to CVS in revision 1.6 of nitobe_utils.php It will be in the next release.
Thanks for this! It's one line that makes a world of difference. You're now on the patch contributor list.
Also, I really like the color scheme you used when you sub-themed it.
Comment #2
Anonymous (not verified) commented