For modules which set global $custom_theme, Skinr does not work correctly. skinr_current_theme() will return the default theme rather than the actual current theme. This is a problem for sites using modules such as domain_theme, which allows a different theme to be used for each domain.
The attached patch fixes the problem for me whether an admin theme is being used or not.
| Comment | File | Size | Author |
|---|---|---|---|
| skinr-current-theme.patch | 678 bytes | jtsnow |
Comments
Comment #1
jtsnow commentedThis may be the same issue that is being reported in #681862: Skinr class not applied to Subsite.
Comment #2
ChrisBryant commentedThanks for the patch! Updating the status and I've asked Kathryn531 in #681862: Skinr class not applied to Subsite. to test the patch to see if it fixes that issue as well.
Comment #3
that0n3guy commentedAwesome... this makes skinr work with modules: sections, page_theme, and themekey (and probably all those other duplicate type modules)
I patched 6.x-1.1 and all is good.
Comment #4
jacineI wonder if this will fix the issues with the switchtheme module. That would be nice.
Comment #5
that0n3guy commentedOh also, is there a type-o on the patch? I removed the "\ No newline at end of file" to get the patch to go through.
Comment #6
kccmcck commentedIt was indeed the same issue. The patch fixed my problems using Skinr in coordination with the Subsite module.
Comment #7
jacineThank you for the patch jtsnow. It has been committed and 6.x.1.2 has been released.
Comment #8
moonray commentedThis patch wasn't properly implemented. Now fixed.