/** * End a switch statement. * * @param string $tag_arg * @param Smarty_Compiler $smarty * @return string */ function smarty_compiler_endswitch($tag_arg, &$smarty) { $switchData =& $smarty->get_template_vars("_switchData"); array_shift($switchData); return "}"; }