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