|
@@ -1321,6 +1321,10 @@ function display_requirements($installType, $badUpdatePath, $updatePath = '', $u
|
|
<td class="requirements-item">'.api_get_path(SYS_ARCHIVE_PATH).'</td>
|
|
<td class="requirements-item">'.api_get_path(SYS_ARCHIVE_PATH).'</td>
|
|
<td class="requirements-value">'.check_writable(api_get_path(SYS_ARCHIVE_PATH)).'</td>
|
|
<td class="requirements-value">'.check_writable(api_get_path(SYS_ARCHIVE_PATH)).'</td>
|
|
</tr>
|
|
</tr>
|
|
|
|
+ <tr>
|
|
|
|
+ <td class="requirements-item">'.api_get_path(SYS_DATA_PATH).'</td>
|
|
|
|
+ <td class="requirements-value">'.check_writable(api_get_path(SYS_DATA_PATH)).'</td>
|
|
|
|
+ </tr>
|
|
<tr>
|
|
<tr>
|
|
<td class="requirements-item">'.api_get_path(SYS_COURSE_PATH).'</td>
|
|
<td class="requirements-item">'.api_get_path(SYS_COURSE_PATH).'</td>
|
|
<td class="requirements-value">'.check_writable(api_get_path(SYS_COURSE_PATH)).' </td>
|
|
<td class="requirements-value">'.check_writable(api_get_path(SYS_COURSE_PATH)).' </td>
|
|
@@ -1422,6 +1426,12 @@ function display_requirements($installType, $badUpdatePath, $updatePath = '', $u
|
|
@chmod($checked_writable, $perm);
|
|
@chmod($checked_writable, $perm);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ $checked_writable = api_get_path(SYS_DATA_PATH);
|
|
|
|
+ if (!is_writable($checked_writable)) {
|
|
|
|
+ $notwritable[] = $checked_writable;
|
|
|
|
+ @chmod($checked_writable, $perm);
|
|
|
|
+ }
|
|
|
|
+
|
|
$checked_writable = api_get_path(SYS_COURSE_PATH);
|
|
$checked_writable = api_get_path(SYS_COURSE_PATH);
|
|
if (!is_writable($checked_writable)) {
|
|
if (!is_writable($checked_writable)) {
|
|
$notwritable[] = $checked_writable;
|
|
$notwritable[] = $checked_writable;
|