Unverified Commit 880e4867 authored by Stefan Hornburg (Racke)'s avatar Stefan Hornburg (Racke)
Browse files

Fix missing content for list_aliases template as well.

parent 76d1c9c1
......@@ -8335,30 +8335,27 @@ sub do_editfile {
$param->{'filepath'} =
Sympa::search_fullpath($list || $robot, $file);
} else {
#my $lang = Conf::get_robot_conf($robot, 'lang');
#$file =~ s/\.tpl$/\.$lang\.tpl/;
$param->{'filepath'} = Sympa::search_fullpath($list || $robot,
$file, subdir => $subdir);
}
 
$param->{'filecontent'} = Sympa::Tools::Text::slurp($param->{'filepath'});
$param->{'filecontent'} = Sympa::Tools::Text::slurp($param->{'filepath'});
 
unless (defined $param->{'filecontent'}) {
wwslog('err', 'Failed to open file %s: %m', $param->{'filepath'});
Sympa::WWW::Report::reject_report_web(
'intern', 'cannot_open_file',
{'file' => $param->{'file_path'}}, $param->{'action'},
$list, $param->{'user'}{'email'},
$robot
);
web_db_log(
{ 'parameters' => $in{'file'},
'status' => 'error',
'error_type' => 'internal'
}
);
return undef;
}
unless (defined $param->{'filecontent'}) {
wwslog('err', 'Failed to open file %s: %m', $param->{'filepath'});
Sympa::WWW::Report::reject_report_web(
'intern', 'cannot_open_file',
{'file' => $param->{'file_path'}}, $param->{'action'},
$list, $param->{'user'}{'email'},
$robot
);
web_db_log(
{ 'parameters' => $in{'file'},
'status' => 'error',
'error_type' => 'internal'
}
);
return undef;
}
}
 
......
Markdown is supported
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