-- CRM-13220 fix for joomla

This change will work for all the cms's.