Closed (works as designed)
Project:
Context
Version:
6.x-2.0-beta7
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Dec 2009 at 19:41 UTC
Updated:
3 Dec 2009 at 21:30 UTC
This is a very bizarre bug, but it is definitely related to theme('anything') getting called during hook_init (or more generally, no contexts can be set /after/ theme() is called). The reason for this is that if context_active_contexts() is called before a context has been set, then the static variables in play prevent context_set() from ever overriding the static $contexts variable.
Comments
Comment #1
jhedstromI tracked this down to an errant call in a template.php file to context_active_contexts, so this is not an issue with context itself.