changes from Christian Burger / Joomla 3 compatible