From 410ce9351ccd9c65efd97f71d28368825400b740 Mon Sep 17 00:00:00 2001 From: john Date: Mon, 9 Apr 2018 16:41:15 +0800 Subject: [PATCH] DataObjects/Core_setting.php --- DataObjects/Core_setting.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/DataObjects/Core_setting.php b/DataObjects/Core_setting.php index cab7b95c..17c125c6 100644 --- a/DataObjects/Core_setting.php +++ b/DataObjects/Core_setting.php @@ -64,7 +64,12 @@ class Pman_Core_DataObjects_Core_setting extends DB_DataObject $d = HTML_FlexyFramework::get()->Pman['storedir'].'/key'; - $this->setStoreDir($dir); + if(!file_exists($d)) { + $oldumask = umask(0); + mkdir($d, 0775, true); + umask($oldumask); + } + $this->storedir = $d; $this->initKeys(); -- 2.39.2