Bug 365472 rename 'token_inexistent' to 'token_does_not_exist' or something
r=lpsolit a=lpsolit git-svn-id: svn://10.0.0.236/trunk@229594 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
a645da29bc
commit
e2473ad484
@ -684,7 +684,7 @@ sub delete_attachment {
|
||||
&& ($event eq 'attachment' . $attachment->id))
|
||||
{
|
||||
# The token is invalid.
|
||||
ThrowUserError('token_inexistent');
|
||||
ThrowUserError('token_does_not_exist');
|
||||
}
|
||||
|
||||
# The token is valid. Delete the content of the attachment.
|
||||
|
||||
@ -62,7 +62,7 @@ if ($token) {
|
||||
&& ($old_bug_id =~ "^createbug:"))
|
||||
{
|
||||
# The token is invalid.
|
||||
ThrowUserError('token_inexistent');
|
||||
ThrowUserError('token_does_not_exist');
|
||||
}
|
||||
|
||||
$old_bug_id =~ s/^createbug://;
|
||||
|
||||
@ -1412,7 +1412,7 @@
|
||||
<tt>[% product FILTER html %]</tt> product, which exceeds the maximum of
|
||||
[%+ max FILTER html %] votes for this product.
|
||||
|
||||
[% ELSIF error == "token_inexistent" %]
|
||||
[% ELSIF error == "token_does_not_exist" %]
|
||||
[% title = "Token Does Not Exist" %]
|
||||
The token you submitted does not exist, has expired, or has
|
||||
been canceled.
|
||||
|
||||
@ -72,7 +72,7 @@ if ($cgi->param('t')) {
|
||||
# Make sure the token exists in the database.
|
||||
my ($tokentype) = $dbh->selectrow_array('SELECT tokentype FROM tokens
|
||||
WHERE token = ?', undef, $::token);
|
||||
$tokentype || ThrowUserError("token_inexistent");
|
||||
$tokentype || ThrowUserError("token_does_not_exist");
|
||||
|
||||
# Make sure the token is the correct type for the action being taken.
|
||||
if ( grep($::action eq $_ , qw(cfmpw cxlpw chgpw)) && $tokentype ne 'password' ) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user