CRM-14208 move joomlaBase outside of condition clause