]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 365472 rename 'token_inexistent' to 'token_does_not_exist' or something
authortimeless%mozdev.org <>
Tue, 10 Jul 2007 12:08:12 +0000 (12:08 +0000)
committertimeless%mozdev.org <>
Tue, 10 Jul 2007 12:08:12 +0000 (12:08 +0000)
r=lpsolit a=lpsolit

attachment.cgi
post_bug.cgi
template/en/default/global/user-error.html.tmpl
token.cgi

index 923af74b76f5a2f485609ba706e02e28bd9b3ca6..690a42d67124d3158aee6c1285b6ba2ddc93bb79 100755 (executable)
@@ -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.
index 35a43feaa4d646c48b1738b6aac4b7f78053d55b..b873d8f72f55093f38e97de442a19cc53e4a327c 100755 (executable)
@@ -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://;
index c2bbde28c5e0d47ff97d52215e668ed83f21e263..05aa0e4b34f2afff54bcb32a519c89762be88a1a 100644 (file)
     <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.
index 66ce2c052df41eebf8330d3b72bc473e42c37379..a07a969fd1b0c15b89408ab0b3dc75378a365d4e 100755 (executable)
--- a/token.cgi
+++ b/token.cgi
@@ -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' ) {