Dotclear

Changeset 766:12f5542d3362


Ignore:
Timestamp:
11/17/11 00:01:59 (12 years ago)
Author:
alex
Branch:
default
Message:

Update error codes in HTML source

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/update.php

    r270 r766  
    120120     { 
    121121          $msg = $e->getMessage(); 
     122           
     123          $error_code = 'update_err'; 
     124           
    122125          if ($e->getCode() == dcUpdate::ERR_FILES_CHANGED) 
    123126          { 
     127               $error_code = "update_err_files_changed"; 
    124128               $msg = 
    125129               __('The following files of your Dotclear installation '. 
     
    129133          elseif ($e->getCode() == dcUpdate::ERR_FILES_UNREADABLE) 
    130134          { 
     135               $error_code = "update_err_files_unreadable"; 
    131136               $msg = 
    132137               sprintf(__('The following files of your Dotclear installation are not readable. '. 
     
    136141          elseif ($e->getCode() == dcUpdate::ERR_FILES_UNWRITALBE) 
    137142          { 
     143               $error_code = "update_err_files_unwritalbe"; 
    138144               $msg = 
    139145               __('The following files of your Dotclear installation cannot be written. '. 
     
    143149          if (isset($e->bad_files)) { 
    144150               $msg .= 
    145                '<ul><li><strong>'. 
     151               '<ul id="'.$error_code.'"><li><strong>'. 
    146152               implode('</strong></li><li><strong>',$e->bad_files). 
    147153               '</strong></li></ul>'; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map