aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2021-04-13 15:43:12 +0200
committerfilip <filip.komar@gmail.com>2021-04-13 15:43:12 +0200
commitff31168b1166a612cd704bc24c8f77dbdc679241 (patch)
tree17f7c494bed712ae490123db24def01fe5bbe723
parente065d637d9aff8e59e44d5c0553fd4c50509951c (diff)
downloadwww-ff31168b1166a612cd704bc24c8f77dbdc679241.tar
www-ff31168b1166a612cd704bc24c8f77dbdc679241.tar.gz
www-ff31168b1166a612cd704bc24c8f77dbdc679241.tar.bz2
www-ff31168b1166a612cd704bc24c8f77dbdc679241.tar.xz
www-ff31168b1166a612cd704bc24c8f77dbdc679241.zip
remove unneeded deprecated 'optional parameter before required' in php8
-rw-r--r--en/4/download_index.php4
-rw-r--r--en/5/download_index.php4
-rw-r--r--en/6/download_index.php4
-rw-r--r--en/7/download_index.php4
-rw-r--r--en/8/download_index.php4
-rw-r--r--en/downloads/prerelease/download_index.php4
6 files changed, 12 insertions, 12 deletions
diff --git a/en/4/download_index.php b/en/4/download_index.php
index 120d6fe77..8847a6956 100644
--- a/en/4/download_index.php
+++ b/en/4/download_index.php
@@ -8,14 +8,14 @@ $dictionary = read_translation_file($locale, array('4', 'common_footer'));
require '../downloads/get/lib.php';
$rtl = is_locale_rtl($locale);
-function get_mageia_image_file_name($variant = null, $arch, $medium, $ext)
+function get_mageia_image_file_name($variant, $arch, $medium, $ext)
{
$va = empty($variant) ? $arch : $variant . '-' . $arch;
return implode('-', array('Mageia','4.1', $va, $medium)) . $ext;
}
-function dl_link($variant = null, $arch = 'i586', $medium, $torrent = false, $unavailabletorrent = false)
+function dl_link($variant, $arch, $medium, $torrent = false, $unavailabletorrent = false)
{
switch ($arch) {
case "i586":
diff --git a/en/5/download_index.php b/en/5/download_index.php
index 507f8fc76..65f91af8c 100644
--- a/en/5/download_index.php
+++ b/en/5/download_index.php
@@ -21,7 +21,7 @@ function get_mageia($name, $version, $release)
return implode('-', array($name, $re));
}
-function get_mageia_image_file_name($name, $version, $release, $variant = null, $arch, $medium, $ext)
+function get_mageia_image_file_name($name, $version, $release, $variant, $arch, $medium, $ext)
{
$va = empty($variant) ? $arch : $variant . '-' . $arch;
$re = empty($release) ? $va : $release . '-' . $va;
@@ -29,7 +29,7 @@ function get_mageia_image_file_name($name, $version, $release, $variant = null,
return implode('-', array($name, $version, $re, $medium)) . $ext;
}
-function dl_link($name, $version, $release, $variant = null, $arch = 'i586', $medium, $torrent = false, $torrentavailable = true)
+function dl_link($name, $version, $release, $variant, $arch, $medium, $torrent = false, $torrentavailable = true)
{
switch ($arch) {
case "i586":
diff --git a/en/6/download_index.php b/en/6/download_index.php
index e7887353b..4917f1189 100644
--- a/en/6/download_index.php
+++ b/en/6/download_index.php
@@ -22,7 +22,7 @@ function get_mageia($name, $version, $release)
return implode('-', array($name, $re));
}
-function get_mageia_image_file_name($name, $version, $release, $variant = null, $arch, $medium, $ext)
+function get_mageia_image_file_name($name, $version, $release, $variant, $arch, $medium, $ext)
{
$va = empty($variant) ? $arch : $variant . '-' . $arch;
$re = empty($release) ? $va : $release . '-' . $va;
@@ -30,7 +30,7 @@ function get_mageia_image_file_name($name, $version, $release, $variant = null,
return implode('-', array($name, $version, $re, $medium)) . $ext;
}
-function dl_link($name, $version, $release, $variant = null, $arch = 'i586', $medium, $torrent = false, $torrentavailable = true)
+function dl_link($name, $version, $release, $variant, $arch, $medium, $torrent = false, $torrentavailable = true)
{
switch ($arch) {
case "i586":
diff --git a/en/7/download_index.php b/en/7/download_index.php
index 8ec6e7376..a77bbf01b 100644
--- a/en/7/download_index.php
+++ b/en/7/download_index.php
@@ -22,7 +22,7 @@ function get_mageia($name, $version, $release)
return implode('-', array($name, $re));
}
-function get_mageia_image_file_name($name, $version, $release, $variant = null, $arch, $medium, $ext)
+function get_mageia_image_file_name($name, $version, $release, $variant, $arch, $medium, $ext)
{
$va = empty($variant) ? $arch : $variant . '-' . $arch;
$re = empty($release) ? $va : $release . '-' . $va;
@@ -30,7 +30,7 @@ function get_mageia_image_file_name($name, $version, $release, $variant = null,
return implode('-', array($name, $version, $re)) . $ext;
}
-function dl_link($name, $version, $release, $variant = null, $arch = 'i586', $medium, $torrent = false, $torrentavailable = true)
+function dl_link($name, $version, $release, $variant, $arch, $medium, $torrent = false, $torrentavailable = true)
{
switch ($arch) {
case "i586":
diff --git a/en/8/download_index.php b/en/8/download_index.php
index 8fed808f0..b1580fa73 100644
--- a/en/8/download_index.php
+++ b/en/8/download_index.php
@@ -22,7 +22,7 @@ function get_mageia($name, $version, $release)
return implode('-', array($name, $re));
}
-function get_mageia_image_file_name($name, $version, $release, $variant = null, $arch, $medium, $ext)
+function get_mageia_image_file_name($name, $version, $release, $variant, $arch, $medium, $ext)
{
$va = empty($variant) ? $arch : $variant . '-' . $arch;
$re = empty($release) ? $va : $release . '-' . $va;
@@ -30,7 +30,7 @@ function get_mageia_image_file_name($name, $version, $release, $variant = null,
return implode('-', array($name, $version, $re)) . $ext;
}
-function dl_link($name, $version, $release, $variant = null, $arch = 'i586', $medium, $torrent = false, $torrentavailable = true)
+function dl_link($name, $version, $release, $variant, $arch, $medium, $torrent = false, $torrentavailable = true)
{
switch ($arch) {
case "i586":
diff --git a/en/downloads/prerelease/download_index.php b/en/downloads/prerelease/download_index.php
index 263e219f8..526fa558e 100644
--- a/en/downloads/prerelease/download_index.php
+++ b/en/downloads/prerelease/download_index.php
@@ -21,7 +21,7 @@ function get_mageia($name, $version, $release)
return implode('-', array($name, $re));
}
-function get_mageia_image_file_name($name, $version, $release, $variant = null, $arch, $medium, $ext)
+function get_mageia_image_file_name($name, $version, $release, $variant, $arch, $medium, $ext)
{
$va = empty($variant) ? $arch : $variant . '-' . $arch;
$re = empty($release) ? $va : $release . '-' . $va;
@@ -29,7 +29,7 @@ function get_mageia_image_file_name($name, $version, $release, $variant = null,
return implode('-', array($name, $version, $re, $medium)) . $ext;
}
-function dl_link($name, $version, $release, $variant = null, $arch = 'i586', $medium, $torrent = false, $torrentavailable = true)
+function dl_link($name, $version, $release, $variant, $arch, $medium, $torrent = false, $torrentavailable = true)
{
switch ($arch) {
case "i586":