summaryrefslogtreecommitdiff
path: root/FS/FS/part_pkg.pm
diff options
context:
space:
mode:
authorivan <ivan>2004-11-08 09:24:54 +0000
committerivan <ivan>2004-11-08 09:24:54 +0000
commitfe39cd452b9763064e270fce2cbe5b73b5585568 (patch)
tree767f89007865bb5214a0afc42e6900559fd30eaa /FS/FS/part_pkg.pm
parent2cbb39a5a2c7d5788f0713031d4237890c6298b0 (diff)
bypass plandata warning; we're accessing it on purpose
Diffstat (limited to 'FS/FS/part_pkg.pm')
-rw-r--r--FS/FS/part_pkg.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/FS/FS/part_pkg.pm b/FS/FS/part_pkg.pm
index 5063936a9..d7cc3cb34 100644
--- a/FS/FS/part_pkg.pm
+++ b/FS/FS/part_pkg.pm
@@ -2,7 +2,7 @@ package FS::part_pkg;
use strict;
use vars qw( @ISA %freq %plans $DEBUG );
-use Carp qw(cluck);
+use Carp qw(carp cluck);
use Tie::IxHash;
use FS::Conf;
use FS::Record qw( qsearch qsearchs dbh dbdef );
@@ -462,7 +462,7 @@ sub option {
} );
return $part_pkg_option->optionvalue if $part_pkg_option;
my %plandata = map { /^(\w+)=(.*)$/; ( $1 => $2 ); }
- split("\n", $self->plandata );
+ split("\n", $self->get('plandata') );
return $plandata{$opt} if exists $plandata{$opt};
cluck "Package definition option $opt not found in options or plandata!\n";
'';