Unverified Commit b6c92056 authored by Luc Didry's avatar Luc Didry
Browse files

Tidying some files

parent 4be974c3
......@@ -2789,7 +2789,8 @@ sub cleanup {
$v->{'format'}{$k}{format} = $format;
} elsif ($v->{'format'}{$k}{'scenario'}) {
# Scenario format
$v->{'format'}{$k}{'format'} = Sympa::Regexps::scenario_config();
$v->{'format'}{$k}{'format'} =
Sympa::Regexps::scenario_config();
#XXX$v->{'format'}{$k}{'default'} = 'default'
#XXX unless ($p eq 'web_archive' and $k eq 'access')
#XXX or ($p eq 'archive' and $k eq 'web_access');
......
......@@ -156,8 +156,12 @@ sub new {
and ( $function eq 'include' and $name =~ m{\A[^/]+\z}
or $name =~ /\A$scenario_name_re\z/)
) {
$log->syslog('err', 'Unknown or undefined scenario function "%s", scenario name "%s"',
$function, $name);
$log->syslog(
'err',
'Unknown or undefined scenario function "%s", scenario name "%s"',
$function,
$name
);
return undef;
}
......@@ -1620,7 +1624,7 @@ sub get_scenarios {
my $scenario =
Sympa::Scenario->new($that, $function, name => $name);
$seen{$name} = 1;
next unless (defined $scenario);
next unless (defined $scenario);
push @scenarios, $scenario;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment