Commit 43ce5f5b authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 979140: Remove remaining <tt> elements

r/a=glob
parent 126c681a
...@@ -192,24 +192,18 @@ sub ThrowTemplateError { ...@@ -192,24 +192,18 @@ sub ThrowTemplateError {
my $maintainer = Bugzilla->params->{'maintainer'}; my $maintainer = Bugzilla->params->{'maintainer'};
my $error = html_quote($vars->{'template_error_msg'}); my $error = html_quote($vars->{'template_error_msg'});
my $error2 = html_quote($template->error()); my $error2 = html_quote($template->error());
my $url = html_quote(Bugzilla->cgi->self_url);
print <<END; print <<END;
<tt>
<p> <p>
Bugzilla has suffered an internal error. Please save this page and Bugzilla has suffered an internal error. Please save this page and
send it to $maintainer with details of what you were doing at the send it to $maintainer with details of what you were doing at the
time this message appeared. time this message appeared.
</p> </p>
<script type="text/javascript"> <!-- <p>URL: $url</p>
document.write("<p>URL: " +
document.location.href.replace(/&/g,"&amp;")
.replace(/</g,"&lt;")
.replace(/>/g,"&gt;") + "</p>");
// -->
</script>
<p>Template->process() failed twice.<br> <p>Template->process() failed twice.<br>
First error: $error<br> First error: $error<br>
Second error: $error2</p> Second error: $error2</p>
</tt>
END END
} }
exit; exit;
......
...@@ -30,14 +30,14 @@ ...@@ -30,14 +30,14 @@
[% admindocslinks = {'voting.html' => 'Setting up the voting feature'} %] [% admindocslinks = {'voting.html' => 'Setting up the voting feature'} %]
You may only use at most [% max FILTER html %] votes for a single You may only use at most [% max FILTER html %] votes for a single
[%+ terms.bug %] in the [%+ terms.bug %] in the
<tt>[% product FILTER html %]</tt> product, but you are trying to <em>[% product FILTER html %]</em> product, but you are trying to
use [% votes FILTER html %]. use [% votes FILTER html %].
[% ELSIF error == "voting_too_many_votes_for_product" %] [% ELSIF error == "voting_too_many_votes_for_product" %]
[% title = "Illegal Vote" %] [% title = "Illegal Vote" %]
[% admindocslinks = {'voting.html' => 'Setting up the voting feature'} %] [% admindocslinks = {'voting.html' => 'Setting up the voting feature'} %]
You tried to use [% votes FILTER html %] votes in the You tried to use [% votes FILTER html %] votes in the
<tt>[% product FILTER html %]</tt> product, which exceeds the maximum of <em>[% product FILTER html %]</em> product, which exceeds the maximum of
[%+ max FILTER html %] votes for this product. [%+ max FILTER html %] votes for this product.
[% END %] [% END %]
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