Renamed function set to setTemplate in models/template.class.php