@@ -2,16 +2,16 @@ |
||
| 2 | 2 | |
| 3 | 3 | // Show warning if a PHP version below 7.1 is used, |
| 4 | 4 | if (version_compare(PHP_VERSION, '7.1') === -1) { |
| 5 | - http_response_code(500); |
|
| 6 | - echo 'This version of Nextcloud requires at least PHP 7.1<br/>'; |
|
| 7 | - echo 'You are currently running ' . PHP_VERSION . '. Please update your PHP version.'; |
|
| 8 | - exit(-1); |
|
| 5 | + http_response_code(500); |
|
| 6 | + echo 'This version of Nextcloud requires at least PHP 7.1<br/>'; |
|
| 7 | + echo 'You are currently running ' . PHP_VERSION . '. Please update your PHP version.'; |
|
| 8 | + exit(-1); |
|
| 9 | 9 | } |
| 10 | 10 | |
| 11 | 11 | // Show warning if > PHP 7.3 is used as Nextcloud is not compatible with > PHP 7.3 for now |
| 12 | 12 | if (version_compare(PHP_VERSION, '7.4.0') !== -1) { |
| 13 | - http_response_code(500); |
|
| 14 | - echo 'This version of Nextcloud is not compatible with > PHP 7.3.<br/>'; |
|
| 15 | - echo 'You are currently running ' . PHP_VERSION . '.'; |
|
| 16 | - exit(-1); |
|
| 13 | + http_response_code(500); |
|
| 14 | + echo 'This version of Nextcloud is not compatible with > PHP 7.3.<br/>'; |
|
| 15 | + echo 'You are currently running ' . PHP_VERSION . '.'; |
|
| 16 | + exit(-1); |
|
| 17 | 17 | } |
@@ -4,7 +4,7 @@ discard block |
||
| 4 | 4 | if (version_compare(PHP_VERSION, '7.1') === -1) { |
| 5 | 5 | http_response_code(500); |
| 6 | 6 | echo 'This version of Nextcloud requires at least PHP 7.1<br/>'; |
| 7 | - echo 'You are currently running ' . PHP_VERSION . '. Please update your PHP version.'; |
|
| 7 | + echo 'You are currently running '.PHP_VERSION.'. Please update your PHP version.'; |
|
| 8 | 8 | exit(-1); |
| 9 | 9 | } |
| 10 | 10 | |
@@ -12,6 +12,6 @@ discard block |
||
| 12 | 12 | if (version_compare(PHP_VERSION, '7.4.0') !== -1) { |
| 13 | 13 | http_response_code(500); |
| 14 | 14 | echo 'This version of Nextcloud is not compatible with > PHP 7.3.<br/>'; |
| 15 | - echo 'You are currently running ' . PHP_VERSION . '.'; |
|
| 15 | + echo 'You are currently running '.PHP_VERSION.'.'; |
|
| 16 | 16 | exit(-1); |
| 17 | 17 | } |