Skip to content

Commit 4676929

Browse files
committed
Install: Hard-set files and directories permissions to avoid deprecation warning with PHP 7.4 at install time
1 parent 0a4b5f1 commit 4676929

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main/install/install.lib.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1120,8 +1120,8 @@ function display_requirements(
11201120
} else {
11211121
$error = false;
11221122
// First, attempt to set writing permissions if we don't have them yet
1123-
$perm = api_get_permissions_for_new_directories();
1124-
$perm_file = api_get_permissions_for_new_files();
1123+
$perm = octdec('0777');
1124+
$perm_file = octdec('0666');
11251125
$notWritable = [];
11261126

11271127
$checked_writable = api_get_path(SYS_APP_PATH);

0 commit comments

Comments
 (0)