From: john Date: Mon, 9 Apr 2018 08:41:15 +0000 (+0800) Subject: DataObjects/Core_setting.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=410ce9351ccd9c65efd97f71d28368825400b740 DataObjects/Core_setting.php --- 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();