Changeset 1535:5878d21ef9b9 for admin/index.php
- Timestamp:
- 08/12/13 17:42:04 (12 years ago)
- Branch:
- ticket #1406-2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/index.php
r1247 r1535 225 225 } 226 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>'; 247 } 248 227 249 # Plugins install messages 228 250 if (!empty($plugins_install['success']))
Note: See TracChangeset
for help on using the changeset viewer.