Skip to content
Snippets Groups Projects
Commit bacc0d30 authored by Síle Ekaterin Liszka's avatar Síle Ekaterin Liszka
Browse files

Chessa::Bug: third time is the charm, right?

parent d8e69d2a
No related branches found
No related tags found
No related merge requests found
......@@ -68,8 +68,9 @@ sub load_module {
}
$self->{log}("Attempting to load $module plugin...");
$module =~ s/::(.*)$/$1/;
my @frags = split /::/, $module;
$module = $frags[-1];
try {
$loaded = $self->{finder}->construct($module, $self->{http}, $self->{log}, sub { $self->message(@_) }, $conf);
......@@ -81,7 +82,7 @@ sub load_module {
push @{$self->{plugins}}, $loaded;
return "Loaded $module plugin.";
$self->{log}("Loaded $module plugin.");
}
sub message {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment