Add support for Joomla 3.1

Add support for Joomla 3.1