X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flibs%2Ffilebackend%2FFSFileBackend.php;h=c2c3b479a2061a3cd004a73ecbfa0a0073727c0c;hb=c112c30346bdc0d64296707e4d0611b8e6a065ba;hp=b257e27909d00d5d56a72aa87eaa61549f299e9d;hpb=5120937028f768749d058aa91dde82a96de0af1c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/filebackend/FSFileBackend.php b/includes/libs/filebackend/FSFileBackend.php index b257e27909..c2c3b479a2 100644 --- a/includes/libs/filebackend/FSFileBackend.php +++ b/includes/libs/filebackend/FSFileBackend.php @@ -89,8 +89,8 @@ class FSFileBackend extends FileBackendStore { } } - $this->fileMode = isset( $config['fileMode'] ) ? $config['fileMode'] : 0644; - $this->dirMode = isset( $config['directoryMode'] ) ? $config['directoryMode'] : 0777; + $this->fileMode = $config['fileMode'] ?? 0644; + $this->dirMode = $config['directoryMode'] ?? 0777; if ( isset( $config['fileOwner'] ) && function_exists( 'posix_getuid' ) ) { $this->fileOwner = $config['fileOwner']; // cache this, assuming it doesn't change @@ -101,7 +101,7 @@ class FSFileBackend extends FileBackendStore { public function getFeatures() { if ( $this->isWindows && version_compare( PHP_VERSION, '7.1', 'lt' ) ) { // PHP before 7.1 used 8-bit code page for filesystem paths on Windows; - // See http://php.net/manual/en/migration71.windows-support.php + // See https://secure.php.net/manual/en/migration71.windows-support.php return 0; } else { return FileBackend::ATTR_UNICODE_PATHS;