projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
592c177
)
default registrations to 1 year
author
jeff
<jeff>
Thu, 16 Sep 2010 04:17:32 +0000
(
04:17
+0000)
committer
jeff
<jeff>
Thu, 16 Sep 2010 04:17:32 +0000
(
04:17
+0000)
FS/FS/part_export/domreg_opensrs.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_export/domreg_opensrs.pm
b/FS/FS/part_export/domreg_opensrs.pm
index
6554991
..
76f0059
100644
(file)
--- a/
FS/FS/part_export/domreg_opensrs.pm
+++ b/
FS/FS/part_export/domreg_opensrs.pm
@@
-379,6
+379,8
@@
Like most export functions, returns an error message on failure or undef on succ
sub register {
my ( $self, $svc_domain, $years ) = @_;
+ $years = 1 unless $years; #default to 1 year since we don't seem to pass it
+
return "Net::OpenSRS does not support period other than 1 year" if $years != 1;
eval "use Net::OpenSRS;";