Skip to content

Commit

Permalink
drone php minimum checks (joomla#18804)
Browse files Browse the repository at this point in the history
  • Loading branch information
zero-24 authored and wilsonge committed Nov 22, 2017
1 parent 85fd8c2 commit 729f43a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
8 changes: 7 additions & 1 deletion administrator/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@

if (version_compare(PHP_VERSION, JOOMLA_MINIMUM_PHP, '<'))
{
die(str_replace(['{{PHP_VERSION}}', '{{BASEPATH}}'], [JOOMLA_MINIMUM_PHP, 'http://' . $_SERVER['SERVER_NAME'] . '/'], file_get_contents(dirname(__FILE__) . '/../templates/system/incompatible.html')));
die(
str_replace(
['{{PHP_VERSION}}', '{{BASEPATH}}'],
[JOOMLA_MINIMUM_PHP, 'http://' . $_SERVER['SERVER_NAME'] . '/'],
file_get_contents(dirname(__FILE__) . '/../templates/system/incompatible.html')
)
);
}

/**
Expand Down
8 changes: 7 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@

if (version_compare(PHP_VERSION, JOOMLA_MINIMUM_PHP, '<'))
{
die(str_replace(['{{PHP_VERSION}}', '{{BASEPATH}}'], [JOOMLA_MINIMUM_PHP, 'http://' . $_SERVER['SERVER_NAME'] . '/'], file_get_contents(dirname(__FILE__) . '/templates/system/incompatible.html')));
die(
str_replace(
['{{PHP_VERSION}}', '{{BASEPATH}}'],
[JOOMLA_MINIMUM_PHP, 'http://' . $_SERVER['SERVER_NAME'] . '/'],
file_get_contents(dirname(__FILE__) . '/templates/system/incompatible.html')
)
);
}

/**
Expand Down
8 changes: 7 additions & 1 deletion installation/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@

if (version_compare(PHP_VERSION, JOOMLA_MINIMUM_PHP, '<'))
{
die(str_replace(['{{PHP_VERSION}}', '{{BASEPATH}}'], [JOOMLA_MINIMUM_PHP, 'http://' . $_SERVER['SERVER_NAME'] . '/'], file_get_contents(dirname(__FILE__) . '/../templates/system/incompatible.html')));
die(
str_replace(
['{{PHP_VERSION}}', '{{BASEPATH}}'],
[JOOMLA_MINIMUM_PHP, 'http://' . $_SERVER['SERVER_NAME'] . '/'],
file_get_contents(dirname(__FILE__) . '/../templates/system/incompatible.html')
)
);
}

/**
Expand Down

0 comments on commit 729f43a

Please sign in to comment.