templates: %{ticket.phone} shows the entire number

Previously, due to a bug in Ticket::getPhone(), the first digit of the formatted phone number was displayed only. This patch will allow display of the entire formatted phone number.

Fixes osTicket/osTicket-1.8#248