Bug 282074: Software error instead of Bugzilla's "Internal Error" Message

Patch By Max Kanat-Alexander <mkanat@kerio.com> r=joel, a=myk
This commit is contained in:
mkanat%kerio.com 2005-02-25 03:02:50 +00:00
Родитель 14ab6b7deb
Коммит 349fb07f6c
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -108,9 +108,9 @@ sub ThrowTemplateError {
# Try a template first; but if this one fails too, fall back # Try a template first; but if this one fails too, fall back
# on plain old print statements. # on plain old print statements.
if (!$template->process("global/code-error.html.tmpl", $vars)) { if (!$template->process("global/code-error.html.tmpl", $vars)) {
my $maintainer = Param('maintainer'); my $maintainer = Bugzilla::Config::Param('maintainer');
my $error = html_quote($vars->{'template_error_msg'}); my $error = Bugzilla::Util::html_quote($vars->{'template_error_msg'});
my $error2 = html_quote($template->error()); my $error2 = Bugzilla::Util::html_quote($template->error());
print <<END; print <<END;
<tt> <tt>
<p> <p>