Dotclear

Changeset 1535:5878d21ef9b9


Ignore:
Timestamp:
08/12/13 17:42:04 (10 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."

Files:
3 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'])) 
  • admin/install/index.php

    r1247 r1535  
    299299'<div id="main">'; 
    300300 
    301 if (!is_writable(DC_TPL_CACHE)) { 
    302      echo '<div class="error"><p>'.sprintf(__('Cache directory %s is not writable.'),DC_TPL_CACHE).'</p></div>'; 
    303 } 
    304  
    305301if ($can_install && !empty($err)) { 
    306302     echo '<div class="error"><p><strong>'.__('Errors:').'</strong></p>'.$err.'</div>'; 
  • inc/config.php.in

    r1179 r1535  
    5050 
    5151// Template cache directory 
    52 define('DC_TPL_CACHE',dirname(__FILE__).'/../cache'); 
     52define('DC_TPL_CACHE',path::real(dirname(__FILE__).'/..').'/cache'); 
    5353 
    5454 
Note: See TracChangeset for help on using the changeset viewer.

Sites map