DataObjects/Core_setting.php
authorjohn <john@roojs.com>
Mon, 9 Apr 2018 08:41:15 +0000 (16:41 +0800)
committerjohn <john@roojs.com>
Mon, 9 Apr 2018 08:41:15 +0000 (16:41 +0800)
DataObjects/Core_setting.php

index cab7b95..17c125c 100644 (file)
@@ -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();