From: Ivan Kohler Date: Tue, 10 Dec 2013 20:18:26 +0000 (-0800) Subject: fix conf callback (align with v3/master), RT#25239 weirdness? X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=86506e0d7c7b4dac280ec270100502e28e10c30b fix conf callback (align with v3/master), RT#25239 weirdness? --- diff --git a/FS/FS/svc_phone.pm b/FS/FS/svc_phone.pm index 79cd6fa3b..7e5e26f25 100644 --- a/FS/FS/svc_phone.pm +++ b/FS/FS/svc_phone.pm @@ -25,12 +25,13 @@ $DEBUG = 0; @pw_set = ( 'a'..'k', 'm','n', 'p-z', 'A'..'N', 'P'..'Z' , '2'..'9' ); #ask FS::UID to run this stuff for us later -$FS::UID::callback{'FS::svc_acct'} = sub { +FS::UID->install_callback( sub { $conf = new FS::Conf; $phone_name_max = $conf->config('svc_phone-phone_name-max_length'); $passwordmin = $conf->config('sip_passwordmin') || 0; $passwordmax = $conf->config('sip_passwordmax') || 80; -}; +} +); =head1 NAME