Changeset 2547 in subversion


Ignore:
Timestamp:
May 26, 2009 12:54:55 PM (4 years ago)
Author:
alec
Message:
  • fix errors handling in ajax requests (#1485872)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/steps/error.inc

    r2516 r2547  
    8686 
    8787 
     88// Ajax request 
     89if ($OUTPUT && ($OUTPUT instanceof rcube_json_output)) { 
     90  header("HTTP/1.0 $ERROR_CODE $__error_title"); 
     91  die; 
     92} 
     93 
    8894// compose page content 
    89  
    9095$__page_content = <<<EOF 
    9196<div> 
     
    9499</div> 
    95100EOF; 
    96  
    97  
    98101 
    99102if ($OUTPUT && $OUTPUT->template_exists('error')) { 
Note: See TracChangeset for help on using the changeset viewer.