diff options
-rw-r--r-- | app/Core/Plugin/Installer.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Core/Plugin/Installer.php b/app/Core/Plugin/Installer.php index b3618aeb..057ded94 100644 --- a/app/Core/Plugin/Installer.php +++ b/app/Core/Plugin/Installer.php @@ -100,7 +100,7 @@ class Installer extends \Kanboard\Core\Base { $zip = new ZipArchive(); $archiveData = $this->httpClient->get($archiveUrl); - $archiveFile = tempnam(sys_get_temp_dir(), 'kb_plugin'); + $archiveFile = tempnam(ini_get('upload_tmp_dir') ? ini_get('upload_tmp_dir') : sys_get_temp_dir(), 'kb_plugin'); if (empty($archiveData)) { unlink($archiveFile); |