Closed (works as designed)
Project:
Sky
Version:
6.x-3.10
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Nov 2010 at 17:27 UTC
Updated:
7 Feb 2011 at 06:42 UTC
Hi,
The theme should not use theme_path() in sky_preprocess(), but rather drupal_get_path('theme', 'sky').
I am not sure if the former should work. However it does not work if any module has a preprocess function before. ( blocktheme was the problematic one in my case).
This does only break the admin menu, but I wondered why it was the case.
Best Wishes,
Fabian (LionsAd)
| Comment | File | Size | Author |
|---|---|---|---|
| sky-theme--fix-path-to-theme-as-its-not-always-working.diff | 817 bytes | fabianx |
Comments
Comment #1
jacineI'm not sure if this is correct or not, but can you elaborate more on the problems it's causing. You say it was causing issues with blocktheme, which I find odd and then you mention that it "only" breaks admin menu. I have no problem changing it if it's wrong, but, using that function during preprocess is a standard practice in Drupal theming. If you look at core themes in Drupal 7, you'll see it's used there as well.
Comment #2
fabianx commentedHi,
Yeah it was a really strange bug. I'll see if I can reproduce it with other combination of modules. Could be also a seldom occuring core bug.
Thanks for coming back to me.
Best Wishes,
Fabian
Comment #3
jacineI'm going to close for now. Feel free to reopen with more details if the problem persists. Thanks!