Correct arguments to load_transport_module()

This commit is contained in:
Chris 2012-08-16 14:09:26 +01:00
parent 12a8f17c84
commit 63dfa87505
2 changed files with 7 additions and 3 deletions

View File

@ -92,9 +92,13 @@ sub get_transports {
## @method $ load_transport_module($args)
# Attempt to load an create an instance of a Message::Transport module.
# Attempt to load an create an instance of a Message::Transport module. Valid arguments
# are:
#
# @param modulename The name of the transport module to load.
# - id, the ID of the transport to load.
# - name, the name of the transport to laod.
#
# @param args A hash or arguments to define the module to load.
# @return A reference to an instance of the requested transport module on success,
# undef on error.
sub load_transport_module {

View File

@ -359,7 +359,7 @@ sub deliver_queue {
if(scalar(@{$messages})) {
# Load the transport...
$transport -> {"module"} = $self -> load_transport_module($transport -> {"id"})
$transport -> {"module"} = $self -> load_transport_module(id => $transport -> {"id"})
or return $self -> self_error("Transport loading failed: ".$self -> {"errstr"});
# Try to deliver each sendable message