aboutsummaryrefslogtreecommitdiff
path: root/perl
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2007-08-29 06:26:26 +0000
committerRuss Allbery <rra@stanford.edu>2007-08-29 06:26:26 +0000
commitaeff9674aa069ed02c2ea0ab2d05a85dc1ced4a7 (patch)
treeb3a3dc5111f690d27f0202e3bd14a09c679f0b36 /perl
parentf6c80f2ddce51e187973f3e95d0d4f04e2644dd9 (diff)
Fix the store implementation to take the right arguments.
Diffstat (limited to 'perl')
-rw-r--r--perl/Wallet/Server.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl/Wallet/Server.pm b/perl/Wallet/Server.pm
index c4132d3..6a95e06 100644
--- a/perl/Wallet/Server.pm
+++ b/perl/Wallet/Server.pm
@@ -219,11 +219,11 @@ sub get {
# Store new data in an object, or returns undef and sets the internal error if
# the object can't be found or if the user isn't authorized.
sub store {
- my ($self, $name, $type) = @_;
+ my ($self, $name, $type, $data) = @_;
my $object = $self->retrieve ($name, $type);
return undef unless defined $object;
return undef unless $self->acl_check ($object, 'store');
- return $object->get ($self->{user}, $self->{host});
+ return $object->store ($data, $self->{user}, $self->{host});
}
# Return a human-readable description of the object's metadata, or returns