My changes to joomleague component to work under Joomla! 3