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

index 13cbc89..76e8e0c 100644 (file)
@@ -8,11 +8,9 @@ class Pman_Core_DataObjects_Core_setting extends DB_DataObject
     
     function initKeys()
     {
-        $d = HTML_FlexyFramework::get()->Pman['storedir'].'/key';
-        
         if(
-            file_exists("{$d}/pub.key") ||
-            file_exists("{$d}/pri.key")
+            file_exists("{$this->dir}/pub.key") ||
+            file_exists("{$this->dir}/pri.key")
         ){
             return;
         }
@@ -63,7 +61,6 @@ class Pman_Core_DataObjects_Core_setting extends DB_DataObject
         }
         
         $d = HTML_FlexyFramework::get()->Pman['storedir'].'/key';
-        
         if(!file_exists($d)) {
             $oldumask = umask(0);
             mkdir($d, 0775, true);