Changeset 319

Show
Ignore:
Timestamp:
03/05/06 16:20:37
Author:
naoya
Message:

modified arguments of Publish::MT->mt

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/Publish/MT.pm

    r318 r319  
    1717 
    1818sub mt { 
    19     my ($self, $context, $args) = @_
     19    my $self = shift
    2020    return $self->{mt} if $self->{mt}; 
    2121    $self->{mt} = Net::MovableType->new($self->conf->{rsd}); 
    2222    unless (defined $self->{mt}) { 
    23         $context->error("couldn't create MT object: " . Net::MovableType->errstr)
     23        die "couldn't create MT object: " . Net::MovableType->errstr
    2424    } 
    2525    $self->{mt}->username($self->conf->{username});