Skip to content

Commit 2ab73b1

Browse files
FileStorage: Allow null for the permissions to get the default
1 parent 1239d7f commit 2ab73b1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Clockwork/Storage/FileStorage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ class FileStorage extends Storage
2525
protected $indexHandle;
2626

2727
// Return new storage, takes path where to store files as argument
28-
public function __construct($path, $pathPermissions = 0700, $expiration = null, $compress = false)
28+
public function __construct($path, $pathPermissions = null, $expiration = null, $compress = false)
2929
{
3030
$this->path = $path;
31-
$this->pathPermissions = $pathPermissions;
31+
$this->pathPermissions = ($pathPermissions === null) ? 0700 : $pathPermissions;
3232
$this->expiration = $expiration === null ? 60 * 24 * 7 : $expiration;
3333
$this->compress = $compress;
3434
}

0 commit comments

Comments
 (0)