Fix file.php in Joomla 2.5.x

Same fix like #3448 for Joomla 2.5.x