For some reason in the method that the hook is calling does not pulling in the variables from the extensions coordinating language file. The only way I can get it to work is to actually load the language file ($LANG->fetch_language_file(’extension’);)
This only is a problem in the method the hook calls, it pulls in the $LANG anywhere else I’ve used it in the class (extension.)
Any ideas? Is this by design?
Josh
hey jturmel,
Thats expected behavior in this case and by design. The only time you would normally call a language file for an extension is for the settings panel (if it has any) and not within the actual method. Many extensions don’t need a language file at all so its not done for you.
Jamie
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.