+ // JErrorPage exists only in 3.x and not 2.x
+ // CRM-13714
+ if ($config->userFramework == 'Joomla' && class_exists('JErrorPage')) {
+ $error = new Exception($content);
+ JErrorPage::render($error);
+ }
+ else if ($config->userFramework == 'Joomla' && class_exists('JError')) {