There's an equivalent for both action and sa, so why not area as well?
« on November 6th, 2012, 03:24 AM »
you're expecting complete system-wide consistency from SMF?
II want to use a context variable to determine if I'm in a certain area. In a plugin, so I don't have $menu_context available. I'm also not creating a menu.
Excuse me while I wake up the household with laughter.
Area URLs are only used in places where there is a menu. Which means you will either have $menu_context directly available, or you will be able to find it inside $context.
Or, you could just use $_REQUEST['area'] like the rest of us would do.
Oh shit, that was sarcasm, wasn't it...?
mmk. I just thought it was an oversight when there was action and sa in loadTheme but not area.