Dotclear

Changeset 921:a95d9e79ab6f for inc


Ignore:
Timestamp:
10/27/12 15:04:35 (13 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Includes error code and message in header, using private dotclear codes, fixes #1106, thanks Tomtom33 for patches

Location:
inc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • inc/core_error.php

    r270 r921  
    1212 
    1313header('Content-Type: text/html; charset=utf-8'); 
     14header("HTTP/1.0 ".$code." ".$summary); 
    1415?> 
    1516<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
  • inc/public/prepend.php

    r420 r921  
    3333                    __('The following error was encountered while trying to read the database:').'</p><ul><li>'.$e->getMessage().'</li></ul>' : 
    3434                    __('Something went wrong while trying to read the database.') 
    35                ,20); 
     35               ,620); 
    3636     } 
    3737} 
     
    4040     __error(__('Blog is not defined.') 
    4141          ,__('Did you change your Blog ID?') 
    42           ,30); 
     42          ,630); 
    4343} 
    4444 
     
    4747     __error(__('Blog is offline.') 
    4848          ,__('This blog is offline. Please try again later.') 
    49           ,70); 
     49          ,670); 
    5050} 
    5151 
     
    6262     __error(__('Can\'t create template files.') 
    6363          ,$e->getMessage() 
    64           ,40); 
     64          ,640); 
    6565} 
    6666 
     
    107107          'path in your blog configuration. Please check theme_path value in '. 
    108108          'about:config module or reinstall default theme. ('.$__theme.')') 
    109           ,50); 
     109          ,650); 
    110110} 
    111111 
     
    152152     __error($e->getMessage() 
    153153          ,__('Something went wrong while loading template file for your blog.') 
    154           ,60); 
     154          ,660); 
    155155} 
    156156?> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map