Okay, I added this to the beginning of the function:
PHP Code:
eval("global \$$storagevar;");
...and it's loading the template. However variables
in the template aren't getting parsed due to the same variable scope issue.
Is there some way to make a function always modify global variables instead of local ones while at the same time not having to type
global $varname; for each one?