Fix for changed path in Joomla 3.1.1
Make function public