[#33614] Fix file.php in Joomla 2.5.x

Same fix like #3448 for Joomla 2.5.x

Tracker: http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33614&start=0