[geany/plugins.geany.org] 07f23e: Enable md5 link if sha1 is selected or nothing is selected

Michael Spahn git-noreply at xxxxx
Mon Mar 24 12:54:32 UTC 2014


Branch:      refs/heads/master
Author:      Michael Spahn <michael at spahn.me>
Committer:   Michael Spahn <michael at spahn.me>
Date:        Mon, 24 Mar 2014 12:54:32 UTC
Commit:      07f23edb28a5124abd2f44d46873cfa9da941c17
             https://github.com/geany/plugins.geany.org/commit/07f23edb28a5124abd2f44d46873cfa9da941c17

Log Message:
-----------
Enable md5 link if sha1 is selected or nothing is selected

This code part was bad documented.


Modified Paths:
--------------
    content/downloads.html

Modified: content/downloads.html
10 files changed, 6 insertions(+), 4 deletions(-)
===================================================================
@@ -37,12 +37,13 @@
 	echo "	<th>SIG</th>";
 	echo "	<th>";
 
-	if ( ( $hash = $_GET['hash'] ) != "md5" || $hash == "")
+	// if sha1 is selected
+	if ($_GET['hash'] != "md5")
 	{
 		echo "<a href=\"?site=downloads&hash=md5\">MD5</a> ";
 	}
 
-	else
+	else // if md5 is selected
 	{
 		echo "MD5 ";
 	}
@@ -50,12 +51,13 @@
 
 	echo "/";
 
-	if ($_GET['hash'] != "sha1")
+	// if md5 is selected or nothing is selected
+	if ( ( $hash = $_GET['hash'] ) != "sha1" || $hash == "" )
 	{
 		echo " <a href=\"?site=downloads&hash=sha1\">SHA1</a> ";
 	}
 
-	else
+	else // if sha is selected
 	{
 		echo " SHA1";
 	}



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list