projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b827832
)
DataObjects/Core_setting.php
author
john
<john@roojs.com>
Mon, 9 Apr 2018 08:42:20 +0000
(16:42 +0800)
committer
john
<john@roojs.com>
Mon, 9 Apr 2018 08:42:20 +0000
(16:42 +0800)
DataObjects/Core_setting.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_setting.php
b/DataObjects/Core_setting.php
index
13cbc89
..
76e8e0c
100644
(file)
--- a/
DataObjects/Core_setting.php
+++ b/
DataObjects/Core_setting.php
@@
-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);