aboutsummaryrefslogtreecommitdiffstats
path: root/en/downloads
diff options
context:
space:
mode:
Diffstat (limited to 'en/downloads')
-rw-r--r--en/downloads/get/index.php2
-rw-r--r--en/downloads/get/lib.php4
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);
}