diff options
author | Romain d'Alverny <rda@mageia.org> | 2011-11-25 17:14:45 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2011-11-25 17:14:45 +0000 |
commit | 776113699f9d7161555100e0820e19a705750e95 (patch) | |
tree | 62a009d698e8814810c529b5298a8a0cb5417046 /en/downloads/get/index.php | |
parent | 9db61bc3e4e5938afba711d42d0cf448bf503e83 (diff) | |
download | www-776113699f9d7161555100e0820e19a705750e95.tar www-776113699f9d7161555100e0820e19a705750e95.tar.gz www-776113699f9d7161555100e0820e19a705750e95.tar.bz2 www-776113699f9d7161555100e0820e19a705750e95.tar.xz www-776113699f9d7161555100e0820e19a705750e95.zip |
add torrent links
Diffstat (limited to 'en/downloads/get/index.php')
-rw-r--r-- | en/downloads/get/index.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/en/downloads/get/index.php b/en/downloads/get/index.php index 078b34ff2..50341c95d 100644 --- a/en/downloads/get/index.php +++ b/en/downloads/get/index.php @@ -53,7 +53,15 @@ try { $one_mirror = $all_mirrors[0]; $alt_mirrors = $all_mirrors[1]; - $path = $product['path'] . '/' . $product['file']; + if ($torrent === true + && isset($product['torrent']) + && strlen($product['torrent']) > 0) { + + $path = $product['torrent']; + } else { + $path = $product['path'] . '/' . $product['file']; + } + $download = $one_mirror['mirror_url'] . '/' . $path; $js_redirect = sprintf('<script>(function(){setTimeout("document.location=\'%s\';", 3000);})();</script>', |