Closed (fixed)
Project:
Nitobe
Version:
6.x-2.2
Component:
Code
Priority:
Critical
Category:
Bug report
Reporter:
Created:
18 Dec 2008 at 07:48 UTC
Updated:
1 Jan 2009 at 21:10 UTC
Jump to comment: Most recent
This seems to be the same sort of issue as noted in the Zen theme http://drupal.org/node/253599.
If a sub-theme is enabled based on Nitobe the phptemplate_preprocess_page() function is called twice for each page template in the sub-theme which results in the masthead and js code being added twice.
Changing phptemplate_preprocess_page to nitobe_preprocess_page (and any phptemplate_preprocess_ to nitobe_preprocess_) will resolve this. (and http://drupal.org/node/252430 ensures that sub-themes will use nitobe_preprocess functions).
Comments
Comment #1
Anonymous (not verified) commentedThanks! I'll tackle this within the next few days.
Comment #2
Anonymous (not verified) commentedThis fix has been checked into CVS as version 1.16 of template.php and will be in the next release.