diff options
author | Ivan Kohler <ivan@freeside.biz> | 2015-05-17 16:21:03 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2015-05-17 16:21:03 -0700 |
commit | 49a6b0927001edb259a858841dd529e42fa58880 (patch) | |
tree | b03ec9d469f389e309485b0271f3ef1fdc4570ee | |
parent | 146fe88cea912f90629950876863ae95faa7600f (diff) |
don't look up encryption config every record, RT#28526
-rw-r--r-- | FS/FS/Record.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm index e324f15c8..b2ab713f0 100644 --- a/FS/FS/Record.pm +++ b/FS/FS/Record.pm @@ -65,9 +65,9 @@ FS::UID->install_callback( sub { die $@ if $@; $conf = FS::Conf->new; $conf_encryption = $conf->exists('encryption'); - $conf_encryptionmodule = $conf->exists('encryptionmodule'); - $conf_encryptionpublickey = $conf->exists('encryptionpublickey'); - $conf_encryptionprivatekey = $conf->exists('encryptionprivatekey'); + $conf_encryptionmodule = $conf->config('encryptionmodule'); + $conf_encryptionpublickey = $conf->config('encryptionpublickey'); + $conf_encryptionprivatekey = $conf->config('encryptionprivatekey'); $money_char = $conf->config('money_char') || '$'; my $nw_coords = $conf->exists('geocode-require_nw_coordinates'); $lat_lower = $nw_coords ? 1 : -90; |