diff options
author | filip <filip.komar@gmail.com> | 2020-09-24 19:21:12 +0200 |
---|---|---|
committer | filip <filip.komar@gmail.com> | 2020-09-24 19:21:12 +0200 |
commit | ffb96f67b017187927558afbe3cdffa7d3b558e6 (patch) | |
tree | 84a467b4c94a1f422873caf2e6fe423c65324565 /en/downloads | |
parent | c2287f71f371a8a7c1fee7ef77059d2bce58da62 (diff) | |
download | www-ffb96f67b017187927558afbe3cdffa7d3b558e6.tar www-ffb96f67b017187927558afbe3cdffa7d3b558e6.tar.gz www-ffb96f67b017187927558afbe3cdffa7d3b558e6.tar.bz2 www-ffb96f67b017187927558afbe3cdffa7d3b558e6.tar.xz www-ffb96f67b017187927558afbe3cdffa7d3b558e6.zip |
automatic DL link is now https only
Diffstat (limited to 'en/downloads')
-rw-r--r-- | en/downloads/get/index.php | 2 | ||||
-rw-r--r-- | en/downloads/get/lib.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/en/downloads/get/index.php b/en/downloads/get/index.php index add253c0f..21e0fb782 100644 --- a/en/downloads/get/index.php +++ b/en/downloads/get/index.php @@ -83,7 +83,7 @@ try { $product['file'] = $release . '-' . $type . '-' . $lang . '.' . $extension; $product['name'] = $product['file']; } - $all_mirrors = get_mirrors_for($product['file'], 'en', get('country'), true, $documentation); + $all_mirrors = get_mirrors_for($product['file'], 'en', get('country'), true, $documentation, true); $one_mirror = $all_mirrors[0]; $alt_mirrors = $all_mirrors[1]; $download_tmpl = get_download_link($product, $torrent); diff --git a/en/downloads/get/lib.php b/en/downloads/get/lib.php index 79374d2af..40a2cb238 100644 --- a/en/downloads/get/lib.php +++ b/en/downloads/get/lib.php @@ -172,13 +172,13 @@ function get_info_for_product($product, $def_file = null) * speed * link */ -function get_mirrors_for($file, $locale = null, $country = null, $prod = true, $documentation = false) +function get_mirrors_for($file, $locale = null, $country = null, $prod = true, $documentation = false, $https_only = false) { //include '../../../lib/Downloads.php'; $mirrors = Downloads::get_all_mirrors($prod, $documentation); $wsd = new Downloads(); - $one = $wsd->prepare_download(true, $country, $prod, $documentation); + $one = $wsd->prepare_download(true, $country, $prod, $documentation, false, $https_only); return array($one, $mirrors); } |