Update file.php

Same fix like #3448 for Joomla 2.5.x