Dotclear

Changeset 1705:0f4123c4d1c5 for inc/core


Ignore:
Timestamp:
09/03/13 19:12:39 (12 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
  • inc/core/class.dc.media.php

    r1677 r1705  
    7474           
    7575          if (!is_dir($root)) { 
    76                throw new Exception(sprintf(__('Directory %s does not exist.'),$root)); 
     76               # Check public directory 
     77               if ( $core->auth->isSuperAdmin() ) { 
     78                    throw new Exception(__("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.")); 
     79               } else { 
     80                    throw new Exception(__("There is no directory /public/ write to the location indicated in about:config \"public_path\". You must contact your administrator.")); 
     81               } 
    7782          } 
    7883           
Note: See TracChangeset for help on using the changeset viewer.

Sites map