The following users have thanked you: melissio
RewriteRule ^libraries\/joomla\/document\/error\/error\.php$ - [L]
RewriteRule ^libraries\/joomla\/document\/document\.php$ - [L]
$_format = JFactory::getApplication()->input->get('format', 'html');
if ($_format=='raw') {
die('Execption with ERROR code:'.$this->error->getCode().' thrown by --RAW-- format URL: '. JURI::current());
}
if (in_array($_format, array('raw','feed', 'json', 'xml'))) {
// do something differently
}
The following users have thanked you: Hola789432, jtechmedical, Matt
$_format = JFactory::getApplication()->input->get('format', 'html');
if ($_format!='html') { // catch ALL non html formats, or maybe output special e.g. if xml output XML ??
die(
'Exception with ERROR code:'.$this->error->getCode()
.' Thrown by --"'.$_format.'"-- format URL: '. JURI::current()
.' Error: '.$this->error->getMessage()
);
}
The following users have thanked you: Hola789432, jtechmedical
Time to create page: 0.050 seconds