From ffb96f67b017187927558afbe3cdffa7d3b558e6 Mon Sep 17 00:00:00 2001 From: filip Date: Thu, 24 Sep 2020 19:21:12 +0200 Subject: automatic DL link is now https only --- en/downloads/get/index.php | 2 +- en/downloads/get/lib.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'en/downloads') 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); } -- cgit v1.2.1