Changes in [1495:cf4e36db13a6:1536:31b45740bf86]
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/index.php
r1488 r1536 223 223 ' '.__('See <a href="http://dotclear.org/documentation/2.0/admin/config">documentation</a> for more information.'). 224 224 '</p>'; 225 } 226 227 $err = array(); 228 229 # 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>'; 234 } 235 236 # 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>'; 241 } 242 243 # Error list 244 if (count($err) > 0) { 245 echo '<div class="error"><p><strong>Erreur :</strong></p>'. 246 '<ul><li>'.implode("</li><li>",$err).'</li></ul></div>'; 225 247 } 226 248 -
admin/install/index.php
r1247 r1535 299 299 '<div id="main">'; 300 300 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 305 301 if ($can_install && !empty($err)) { 306 302 echo '<div class="error"><p><strong>'.__('Errors:').'</strong></p>'.$err.'</div>'; -
inc/config.php.in
r1179 r1535 50 50 51 51 // Template cache directory 52 define('DC_TPL_CACHE', dirname(__FILE__).'/../cache');52 define('DC_TPL_CACHE',path::real(dirname(__FILE__).'/..').'/cache'); 53 53 54 54
Note: See TracChangeset
for help on using the changeset viewer.