Add changes for Joomla 3.x