php templating typos fixed