I removed the hardcoded default of "tpl" as the template extension in My_Parser and replaced it with a config variable set in the smarty config file. Instead of re-loading the smarty config in the parser to get at the variable, I just added a variable in the smarty class and called that variable in the parser.
I also added that $data line wrapped in an "is_array" check.
I removed the hardcoded default of "tpl" as the template extension in My_Parser and replaced it with a config variable set in the smarty config file. Instead of re-loading the smarty config in the parser to get at the variable, I just added a variable in the smarty class and called that variable in the parser.
I also added that $data line wrapped in an "is_array" check.