Skip to content

Commit 4b7416f

Browse files
committed
Add array workaround to support ancient PHP
1 parent fdc68cd commit 4b7416f

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

download-page.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
<?php
22
// for command line use; parse_str($_SERVER['QUERY_STRING'], $_GET);
33
date_default_timezone_set('UTC');
4-
$valid_pages = [
5-
'nqp' => [
4+
$valid_pages = array(
5+
'nqp' => array(
66
'id' => 'nqp',
77
'name' => 'NQP (Not Quite Perl) Compiler Toolkit',
88
'path' => 'downloads/nqp/',
9-
'vars' => ['.tar.gz' => null]
10-
],
11-
'rakudo' => [
9+
'vars' => array('.tar.gz' => null)
10+
),
11+
'rakudo' => array(
1212
'id' => 'rakudo',
1313
'name' => 'Rakudo Perl 6 Compiler',
1414
'path' => 'downloads/rakudo/',
15-
'vars' => ['.tar.gz' => null]
16-
],
17-
'star' => [
15+
'vars' => array('.tar.gz' => null)
16+
),
17+
'star' => array(
1818
'id' => 'rakudo-star',
1919
'name' => 'Rakudo Star Perl 6 Distribution',
2020
'path' => 'downloads/star/',
21-
'vars' => [
21+
'vars' => array(
2222
'.tar.gz' => null,
2323
'.dmg' => null,
2424
'-x86_64 (JIT).msi' => null,
2525
'-x86 (no JIT).msi' => null
26-
]
27-
]
28-
];
26+
)
27+
)
28+
);
2929

3030
$give_latest = array_key_exists('latest', $_GET) ? $_GET['latest'] : null;
3131
$asset = array_key_exists('asset', $_GET) ? (

0 commit comments

Comments
 (0)