From: Alan Knowles Date: Fri, 13 Apr 2018 04:11:33 +0000 (+0800) Subject: DataObjects/Core_setting.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=4fead06df5cad5c26083f946b12a0a402d99e54f DataObjects/Core_setting.php --- diff --git a/DataObjects/Core_setting.php b/DataObjects/Core_setting.php index 0dd28470..78a01f19 100644 --- a/DataObjects/Core_setting.php +++ b/DataObjects/Core_setting.php @@ -27,8 +27,8 @@ class Pman_Core_DataObjects_Core_setting extends DB_DataObject $pub_key = openssl_pkey_get_details($ssl); $pub_key = $pub_key["key"]; - file_put_contents("{$d}/pub.key",$pub_key); - file_put_contents("{$d}/pri.key",$pri_key); + file_put_contents("{$dir}/pub.key",$pub_key); + file_put_contents("{$dir}/pri.key",$pri_key); } function getSetting($m,$n)