aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain d'Alverny <rda@mageia.org>2011-11-25 13:31:37 +0000
committerRomain d'Alverny <rda@mageia.org>2011-11-25 13:31:37 +0000
commit9341e039a63c9e8fb6afd314fef73e48460b72e2 (patch)
tree1bb8e180f9ca8a775ea92acaa4ae053ddbb8126e
parent8aa8bef277c841665d75351a252f9c7d87acc322 (diff)
downloadwww-9341e039a63c9e8fb6afd314fef73e48460b72e2.tar
www-9341e039a63c9e8fb6afd314fef73e48460b72e2.tar.gz
www-9341e039a63c9e8fb6afd314fef73e48460b72e2.tar.bz2
www-9341e039a63c9e8fb6afd314fef73e48460b72e2.tar.xz
www-9341e039a63c9e8fb6afd314fef73e48460b72e2.zip
fix checksums display
-rw-r--r--en/downloads/get/definitions.ini4
-rw-r--r--en/downloads/get/index.php8
2 files changed, 5 insertions, 7 deletions
diff --git a/en/downloads/get/definitions.ini b/en/downloads/get/definitions.ini
index d767d717b..a1f34a4a5 100644
--- a/en/downloads/get/definitions.ini
+++ b/en/downloads/get/definitions.ini
@@ -30,8 +30,6 @@ file = mgaonline-2.77.29-1.mga1.noarch.rpm
;
[Mageia-2-alpha1-Boot-i586-CD.iso]
file = boot.iso
-md5 =
-sha1 =
path = "distrib/cauldron/i586/install/images"
name = "Mageia 2 alpha1 Boot 32bit CD ISO"
size = "38 MB"
@@ -39,8 +37,6 @@ size = "38 MB"
;
[Mageia-2-alpha1-Boot-x86_64-CD.iso]
file = boot.iso
-md5 =
-sha1 =
path = "distrib/cauldron/x86_64/install/images"
name = "Mageia 2 alpha1 Boot 64bit CD ISO"
size = "39 MB"
diff --git a/en/downloads/get/index.php b/en/downloads/get/index.php
index 886c066ee..0d19ad9e5 100644
--- a/en/downloads/get/index.php
+++ b/en/downloads/get/index.php
@@ -146,13 +146,15 @@ $_t['page_title'] = sprintf($_t['page_title'], '<em class="tag">' . $title . '</
<div class="dlinfo">
<p><?php echo $dl2_mirror_alt; ?></p>
- <?php if ((isset($product['md5']) || isset($product['sha1'])) && !$torrent): ?>
+ <?php if (((isset($product['md5']) && strlen($product['md5']) > 0)
+ || (isset($product['sha1'])) && strlen($product['sha1']) > 0)
+ && !$torrent): ?>
<p><?php echo $_t['signs_check_1']; ?></p>
<div id="check-signs">
<pre class="term">
-<?php if (isset($product['md5'])): ?>$ md5sum <?php echo basename($download), "\n<strong>", $product['md5'], "</strong>\n"; endif; ?>
+<?php if (strlen($product['md5'])): ?>$ md5sum <?php echo basename($download), "\n<strong>", $product['md5'], "</strong>\n"; endif; ?>
-<?php if (isset($product['sha1'])): ?>$ sha1sum <?php echo basename($download), "\n<strong>", $product['sha1'], "</strong>\n"; endif; ?>
+<?php if (strlen($product['sha1'])): ?>$ sha1sum <?php echo basename($download), "\n<strong>", $product['sha1'], "</strong>\n"; endif; ?>
</pre>
<p><?php echo $_t['signs_check_2']; ?></p>
</div>