alecpl
2010-05-01 ea50e71260dc47e10dc4e39d007d082c464bae03
program/steps/error.inc
@@ -81,20 +81,23 @@
  if (($CONFIG['debug_level'] & 4) && $ERROR_MESSAGE)
    $__error_text = $ERROR_MESSAGE;
  else
    $__error_text = sprintf('Error No. [0x%04X]', $ERROR_CODE);
    $__error_text = sprintf('Error No. [%s]', $ERROR_CODE);
}
// compose page content
// Ajax request
if ($OUTPUT && ($OUTPUT instanceof rcube_json_output)) {
  header("HTTP/1.0 $ERROR_CODE $__error_title");
  die;
}
// compose page content
$__page_content = <<<EOF
<div>
<h3 class="error-title">$__error_title</h3>
<p class="error-text">$__error_text</p>
</div>
EOF;
if ($OUTPUT && $OUTPUT->template_exists('error')) {
  $OUTPUT->reset();