Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
43ce5f5b
Commit
43ce5f5b
authored
Mar 04, 2014
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 979140: Remove remaining <tt> elements
r/a=glob
parent
126c681a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
11 deletions
+5
-11
Error.pm
Bugzilla/Error.pm
+3
-9
user-error-errors.html.tmpl
...mplate/en/default/hook/global/user-error-errors.html.tmpl
+2
-2
No files found.
Bugzilla/Error.pm
View file @
43ce5f5b
...
...
@@ -192,24 +192,18 @@ sub ThrowTemplateError {
my
$maintainer
=
Bugzilla
->
params
->
{
'maintainer'
};
my
$error
=
html_quote
(
$vars
->
{
'template_error_msg'
});
my
$error2
=
html_quote
(
$template
->
error
());
my
$url
=
html_quote
(
Bugzilla
->
cgi
->
self_url
);
print
<<END;
<tt>
<p>
Bugzilla has suffered an internal error. Please save this page and
send it to $maintainer with details of what you were doing at the
time this message appeared.
</p>
<script type="text/javascript"> <!--
document.write("<p>URL: " +
document.location.href.replace(/&/g,"&")
.replace(/</g,"<")
.replace(/>/g,">") + "</p>");
// -->
</script>
<p>URL: $url</p>
<p>Template->process() failed twice.<br>
First error: $error<br>
Second error: $error2</p>
</tt>
END
}
exit
;
...
...
extensions/Voting/template/en/default/hook/global/user-error-errors.html.tmpl
View file @
43ce5f5b
...
...
@@ -30,14 +30,14 @@
[% admindocslinks = {'voting.html' => 'Setting up the voting feature'} %]
You may only use at most [% max FILTER html %] votes for a single
[%+ 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 %].
[% ELSIF error == "voting_too_many_votes_for_product" %]
[% title = "Illegal Vote" %]
[% admindocslinks = {'voting.html' => 'Setting up the voting feature'} %]
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.
[% END %]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment