Dotclear


Ignore:
Timestamp:
08/12/13 17:42:04 (12 years ago)
Author:
Lepeltier kévin
Branch:
ticket #1406-2
Message:

ticket #1406
Déplacement du message d'erreur du dossier cache pendant la phase d'installation
Vers le Dashboard.
Ajout d'un message d'erreur concernant le dossier public, sur le Dashboard.
Deux phrases ajouté pour la traduction.
"Cache directory %s does not exist."
"Directory %s is not writable."

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/index.php

    r1247 r1535  
    225225} 
    226226 
     227$err = array(); 
     228 
     229# Check cache directory 
     230if (!is_dir(DC_TPL_CACHE)) { 
     231     $err[] = '<p>'.sprintf(__('Cache directory %s does not exist.'),DC_TPL_CACHE).'</p>'; 
     232} else if (!is_writable(DC_TPL_CACHE)) { 
     233     $err[] = '<p>'.sprintf(__('Cache directory %s is not writable.'),DC_TPL_CACHE).'</p>'; 
     234} 
     235 
     236# Check public directory 
     237if (!is_dir($core->blog->public_path)) { 
     238     $err[] = '<p>'.sprintf(__('Directory %s does not exist.'),$core->blog->public_path).'</p>'; 
     239} else if (!is_writable($core->blog->public_path)) { 
     240     $err[] = '<p>'.sprintf(__('Directory %s is not writable.'),$core->blog->public_path).'</p>'; 
     241} 
     242 
     243# Error list 
     244if (count($err) > 0) { 
     245     echo '<div class="error"><p><strong>Erreur&nbsp;:</strong></p>'. 
     246     '<ul><li>'.implode("</li><li>",$err).'</li></ul></div>'; 
     247} 
     248 
    227249# Plugins install messages 
    228250if (!empty($plugins_install['success'])) 
Note: See TracChangeset for help on using the changeset viewer.

Sites map