a lot of session fixes... I'm sure this breaks something somewhere though.

This commit is contained in:
Matthew Wilson 2006-03-10 19:59:43 +00:00
parent 279233b367
commit 0c177bacb1
10 changed files with 38 additions and 24 deletions

View file

@ -70,8 +70,8 @@ Constructor
sub init {
my ($class, $self);
$class = shift;
$self = $class->SUPER::init('ByWeight');
my $session = shift;
$self = $class->SUPER::init($session,'ByWeight');
return $self;
}
@ -85,8 +85,8 @@ Returns the internationalized name for this shipping plugin.
=cut
sub name {
my ($session) = @_;
my $i18n = WebGUI::International->new($session, 'CommerceShippingByWeight');
my $self = shift;
my $i18n = WebGUI::International->new($self->session, 'CommerceShippingByWeight');
return $i18n->get('title');
}