Skip to content

Commit

Permalink
Use long array syntax to avoid parse errors on PHP 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
mbabker committed Dec 16, 2017
1 parent d797b58 commit 02a4233
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions administrator/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
{
die(
str_replace(
['{{PHP_VERSION}}', '{{BASEPATH}}'],
[JOOMLA_MINIMUM_PHP, 'http://' . $_SERVER['SERVER_NAME'] . '/'],
array('{{PHP_VERSION}}', '{{BASEPATH}}'),
array(JOOMLA_MINIMUM_PHP, 'http://' . $_SERVER['SERVER_NAME'] . '/'),
file_get_contents(dirname(__FILE__) . '/../templates/system/incompatible.html')
)
);
Expand Down
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
{
die(
str_replace(
['{{PHP_VERSION}}', '{{BASEPATH}}'],
[JOOMLA_MINIMUM_PHP, 'http://' . $_SERVER['SERVER_NAME'] . '/'],
array('{{PHP_VERSION}}', '{{BASEPATH}}'),
array(JOOMLA_MINIMUM_PHP, 'http://' . $_SERVER['SERVER_NAME'] . '/'),
file_get_contents(dirname(__FILE__) . '/templates/system/incompatible.html')
)
);
Expand Down
4 changes: 2 additions & 2 deletions installation/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
{
die(
str_replace(
['{{PHP_VERSION}}', '{{BASEPATH}}'],
[JOOMLA_MINIMUM_PHP, 'http://' . $_SERVER['SERVER_NAME'] . '/'],
array('{{PHP_VERSION}}', '{{BASEPATH}}'),
array(JOOMLA_MINIMUM_PHP, 'http://' . $_SERVER['SERVER_NAME'] . '/'),
file_get_contents(dirname(__FILE__) . '/../templates/system/incompatible.html')
)
);
Expand Down

0 comments on commit 02a4233

Please sign in to comment.