Patch updatesversion, J2.5

This is a version of #2811 for Joomla 2.5

Issue tracker: [33166](http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33166&start=0)