Check sessions and courses upload directories - refs BT#9464

1.10.x
Angel Fernando Quiroz Campos 10 years ago
parent 047c73e5bb
commit 6bdbcacb61
  1. 12
      main/install/install.lib.php

@ -1416,6 +1416,18 @@ function display_requirements($installType, $badUpdatePath, $updatePath = '', $u
@chmod($checked_writable, $perm);
}
$checkedWritable = api_get_path(SYS_CODE_PATH).'upload/sessions/';
if (!is_writable($checkedWritable)) {
$notwritable[] = $checkedWritable;
@chmod($checkedWritable, $perm);
}
$checkedWritable = api_get_path(SYS_CODE_PATH).'upload/courses/';
if (!is_writable($checkedWritable)) {
$notwritable[] = $checkedWritable;
@chmod($checkedWritable, $perm);
}
$checked_writable = api_get_path(SYS_CODE_PATH).'default_course_document/images/';
if (!is_writable($checked_writable)) {
$notwritable[] = $checked_writable;

Loading…
Cancel
Save