summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2015-05-17 16:21:05 -0700
committerIvan Kohler <ivan@freeside.biz>2015-05-17 16:21:05 -0700
commit529c23d58c97eca1d71df865988def671bfbd2cb (patch)
tree2b115b759bfecb19bb2f590b40e754e49388bf6e
parent004a6337cff05d08db7abc400e1c09430f000ac0 (diff)
don't look up encryption config every record, RT#28526
-rw-r--r--FS/FS/Record.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm
index ec0ba142f..b1e4a381c 100644
--- a/FS/FS/Record.pm
+++ b/FS/FS/Record.pm
@@ -72,9 +72,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;