Unverified Commit f88d6750 authored by IKEDA Soji's avatar IKEDA Soji Committed by GitHub
Browse files

Merge pull request #921 from racke/pr/fix-listmaster-template-edits by racke

Fix missing content for listmaster admin template edits in the web interface
parents 7433eb4c 880e4867
......@@ -8335,12 +8335,28 @@ 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'});
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;
}
}
 
if (-f $param->{'filepath'} && (!-r $param->{'filepath'})) {
......
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