Density functional calculations of photoionization with an exchange-correlation potential with the correct asymptotic behaviour