[git] gnupg-doc - branch, preview, updated. 083b351ede0b9527f992c3c7e743717791b4d9f5

by Kai Michaelis cvs at cvs.gnupg.org
Tue May 16 17:44:12 CEST 2017


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GnuPG website and other docs".

The branch, preview has been updated
       via  083b351ede0b9527f992c3c7e743717791b4d9f5 (commit)
      from  4ac03bde9970067ac18c8ec929a48e642e682b61 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 083b351ede0b9527f992c3c7e743717791b4d9f5
Author: Kai Michaelis <kai at gnupg.org>
Date:   Tue May 16 17:46:04 2017 +0200

    cgi: remove special amount handling

diff --git a/cgi/procdonate.cgi b/cgi/procdonate.cgi
index eeff19b..578b529 100755
--- a/cgi/procdonate.cgi
+++ b/cgi/procdonate.cgi
@@ -140,25 +140,8 @@ sub write_template ($) {
     # Check the currency and predefined amount.
     if ( $currency =~ /EUR/i ) {
         $sel_eur = ' selected="selected"';
-        $xamount = int $amount;
-        if ( $xamount == 5 ) {
-            $chk_amt5 = $check_checked;
-        } elsif ( $xamount == 10 ) {
-            $chk_amt10 = $check_checked;
-        } elsif ( $xamount = 20 ) {
-            $chk_amt20 = $check_checked;
-        } elsif ( $xamount == 50 ) {
-            $chk_amt50 = $check_checked;
-        } elsif ( $xamount == 100 ) {
-            $chk_amt100 = $check_checked;
-        } elsif ( $xamount == 200 ) {
-            $chk_amt200 = $check_checked;
-        } elsif ( $xamount == 500 ) {
-            $chk_amt500 = $check_checked;
-        } else {
-            $chk_amtx = $check_checked;
-            $amt_other = $amount;
-        }
+        $chk_amtx = $check_checked;
+        $amt_other = $amount;
     } elsif ( $currency =~ /USD/i ) {
         $sel_usd = ' selected="selected"';
         $chk_amtx = $check_checked;

-----------------------------------------------------------------------

Summary of changes:
 cgi/procdonate.cgi | 21 ++-------------------
 1 file changed, 2 insertions(+), 19 deletions(-)


hooks/post-receive
-- 
The GnuPG website and other docs
http://git.gnupg.org




More information about the Gnupg-commits mailing list