Anybody knows how to change this function with preg_replace and the /e modifier. I'm getting a weird error when debug because the /e modifier.Seems that was depreciated.
$globCont = preg_replace("/{(\w*)}/e", '$this->TemplateGlobals["$1"]', $content);