source->name}:\${$var} ="; $output .= isset($ptr->config_vars[$var]) ? preg_replace('/\s/', '', var_export($ptr->config_vars[$var], true)) : 'null'; $ptr = $ptr->parent; } elseif (in_array('data', $types) && $ptr instanceof Smarty_Data) { $output .= "#data:\${$var} ="; $output .= isset($ptr->config_vars[$var]) ? preg_replace('/\s/', '', var_export($ptr->config_vars[$var], true)) : 'null'; $ptr = $ptr->parent; } else { $ptr = null; } } if (in_array('smarty', $types)) { $output .= "#Smarty:\${$var} ="; $output .= isset($template->smarty->config_vars[ $var ]) ? preg_replace('/\s/', '', var_export($template->smarty->config_vars[ $var ], true)) : 'null'; } return $output; }