From e8458a83fc8b05253372d702f120bbb1659e6035 Mon Sep 17 00:00:00 2001 From: Dmitry Druganov Date: Fri, 9 Feb 2018 22:04:56 +0100 Subject: [PATCH] Fix setting of custom DataBox directory --- src/DataBox.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/DataBox.php b/src/DataBox.php index 54b381b..36c94d7 100644 --- a/src/DataBox.php +++ b/src/DataBox.php @@ -67,6 +67,8 @@ public function __construct($directory = null) { if ($directory === null) { $this->directory = sys_get_temp_dir() . '/DataBox'; + } else { + $this->directory = $directory; } $this->simpleApi = new DataBoxSimpleApi($this); }