Update lib/tmpl.class.php