Skip to content

Commit

Permalink
Remove app subdirs warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed May 4, 2015
1 parent 056b709 commit d071ff4
Showing 1 changed file with 1 addition and 37 deletions.
38 changes: 1 addition & 37 deletions main/install/install.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -995,60 +995,24 @@ function display_requirements(
$perm_file = api_get_permissions_for_new_files();

$notWritable = array();
$curdir = getcwd();

$checked_writable = api_get_path(CONFIGURATION_PATH);
$checked_writable = api_get_path(SYS_APP_PATH);
if (!is_writable($checked_writable)) {
$notWritable[] = $checked_writable;
@chmod($checked_writable, $perm);
}

$checked_writable = api_get_path(SYS_UPLOAD_PATH).'users/';
if (!is_writable($checked_writable)) {
$notWritable[] = $checked_writable;
@chmod($checked_writable, $perm);
}

$checkedWritable = api_get_path(SYS_UPLOAD_PATH).'sessions/';
if (!is_writable($checkedWritable)) {
$notWritable[] = $checkedWritable;
@chmod($checkedWritable, $perm);
}

$checkedWritable = api_get_path(SYS_UPLOAD_PATH).'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;
@chmod($checked_writable, $perm);
}

$checked_writable = api_get_path(SYS_ARCHIVE_PATH);
if (!is_writable($checked_writable)) {
$notWritable[] = $checked_writable;
@chmod($checked_writable, $perm);
}

$checked_writable = api_get_path(SYS_COURSE_PATH);
if (!is_writable($checked_writable)) {
$notWritable[] = $checked_writable;
@chmod($checked_writable, $perm);
}

if ($course_test_was_created == false) {
$error = true;
}

$checked_writable = api_get_path(SYS_APP_PATH).'home/';
if (!is_writable($checked_writable)) {
$notWritable[] = realpath($checked_writable);
@chmod($checked_writable, $perm);
}

$checked_writable = api_get_path(CONFIGURATION_PATH).'configuration.php';
if (file_exists($checked_writable) && !is_writable($checked_writable)) {
$notWritable[] = $checked_writable;
Expand Down

0 comments on commit d071ff4

Please sign in to comment.