diff options
author | Manuel Hiebel <leuhmanu@mageia.org> | 2018-11-29 15:53:40 +0100 |
---|---|---|
committer | Manuel Hiebel <leuhmanu@mageia.org> | 2018-11-29 15:53:40 +0100 |
commit | ec1ef8e7bbe343227b71f57490464f669cb64b80 (patch) | |
tree | 9ac80e04aee99cf8afccecdc5cb45b576bf7b875 | |
parent | 8e1234a51e7d8ade46abed199a618e734b6d15a2 (diff) | |
download | www-ec1ef8e7bbe343227b71f57490464f669cb64b80.tar www-ec1ef8e7bbe343227b71f57490464f669cb64b80.tar.gz www-ec1ef8e7bbe343227b71f57490464f669cb64b80.tar.bz2 www-ec1ef8e7bbe343227b71f57490464f669cb64b80.tar.xz www-ec1ef8e7bbe343227b71f57490464f669cb64b80.zip |
Use correct url iso name for classical install
still in version 6, not 6.1
-rw-r--r-- | en/6/download_index.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/en/6/download_index.php b/en/6/download_index.php index 36d0bce9e..2dc82b5e7 100644 --- a/en/6/download_index.php +++ b/en/6/download_index.php @@ -1,7 +1,8 @@ <?php $name = 'Mageia'; -$version = '6.1'; +$version = '6.1'; +$versionOld = '6'; //version for classical iso, no update since $release = ''; $torrentavailable=true; $classical=true; @@ -508,8 +509,13 @@ $('img.lazy').each(function(){ nat = (nat = $('input[name=nat]:checked').val()) == '-' ? '-' : '-' + nat + '-'; arch = $('input[name=arch]:checked').val(); getname ='<?php echo get_mageia($name, $version, $release)?>' + '-'; - file = $('#live').is(':checked') ? format + '-' + desktop + '-' + arch + '-' + 'DVD.iso' : $('#classical').is(':checked') ? arch + '-' + format + '.iso' : format + nat + arch + '-CD.iso'; - file = (this.id == 'torrentlink') ? getname + file + '&torrent=1' : getname + file ; +<?php if($versionOld){ ?> + getnameOld ='<?php echo get_mageia($name, $versionOld, $release)?>' + '-'; + file = $('#live').is(':checked') ? getname + format + '-' + desktop + '-' + arch + '-' + 'DVD.iso' : $('#classical').is(':checked') ? getnameOld + arch + '-' + format + '.iso' : getname + format + nat + arch + '-CD.iso'; +<?php }else{ ?> + file = $('#live').is(':checked') ? getname + format + '-' + desktop + '-' + arch + '-' + 'DVD.iso' : $('#classical').is(':checked') ? getname + arch + '-' + format + '.iso' : getname + format + nat + arch + '-CD.iso'; +<?php } ?> + file = (this.id == 'torrentlink') ? file + '&torrent=1' : file ; $("a.btn").attr('href','../downloads/get/?q=' + file); }); </script> |