Dotclear


Ignore:
Timestamp:
09/03/13 19:12:39 (11 years ago)
Author:
kevin@…
Branch:
ticket #1406-2
Children:
1706:ceda30178c06, 1707:0210876ac75e
Message:

Ticket #1406 : nouveaux messages d'erreur.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/index.php

    r1591 r1705  
    228228 
    229229# Check cache directory 
    230 if (!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>'; 
     230if ( $core->auth->isSuperAdmin() ) { 
     231     if (!is_dir(DC_TPL_CACHE) || !is_writable(DC_TPL_CACHE)) { 
     232          $err[] = '<p>'.__("Dotclear needs a directory write cache to function properly. You need to create a designated area in the line \"DC_TPL_CACHE\" in the file inc/config.php in your system and assign rights to read, write and execute for everyone.").'</p>'; 
     233     } 
     234} else { 
     235     if (!is_dir(DC_TPL_CACHE) || !is_writable(DC_TPL_CACHE)) { 
     236          $err[] = '<p>'.__("Dotclear needs a directory write cache to function properly. You must contact your administrator.").'</p>'; 
     237     } 
    234238} 
    235239 
    236240# Check public directory 
    237 if (!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>'; 
     241if ( $core->auth->isSuperAdmin() ) { 
     242     if (!is_dir($core->blog->public_path) || !is_writable($core->blog->public_path)) { 
     243          $err[] = '<p>'.__("There is no directory /public/ write to the location indicated in about:config \"public_path\". You must create this directory in the specified location, or change the settings and assign permissions to read, write and execute for everyone.").'</p>'; 
     244     } 
     245} else { 
     246     if (!is_dir($core->blog->public_path) || !is_writable($core->blog->public_path)) { 
     247          $err[] = '<p>'.__("There is no directory /public/ write to the location indicated in about:config \"public_path\". You must contact your administrator.").'</p>'; 
     248     } 
    241249} 
    242250 
Note: See TracChangeset for help on using the changeset viewer.

Sites map