Correct arguments to load_transport_module()
This commit is contained in:
parent
12a8f17c84
commit
63dfa87505
@ -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 {
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user