@@ -24,16 +24,16 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | // Show warning if a PHP version below 7.3 is used, |
| 26 | 26 | if (PHP_VERSION_ID < 70300) { |
| 27 | - http_response_code(500); |
|
| 28 | - echo 'This version of Nextcloud requires at least PHP 7.3<br/>'; |
|
| 29 | - echo 'You are currently running ' . PHP_VERSION . '. Please update your PHP version.'; |
|
| 30 | - exit(-1); |
|
| 27 | + http_response_code(500); |
|
| 28 | + echo 'This version of Nextcloud requires at least PHP 7.3<br/>'; |
|
| 29 | + echo 'You are currently running ' . PHP_VERSION . '. Please update your PHP version.'; |
|
| 30 | + exit(-1); |
|
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | // Show warning if > PHP 8.0 is used as Nextcloud is not compatible with > PHP 8.0 for now |
| 34 | 34 | if (PHP_VERSION_ID >= 80100) { |
| 35 | - http_response_code(500); |
|
| 36 | - echo 'This version of Nextcloud is not compatible with > PHP 8.0.<br/>'; |
|
| 37 | - echo 'You are currently running ' . PHP_VERSION . '.'; |
|
| 38 | - exit(-1); |
|
| 35 | + http_response_code(500); |
|
| 36 | + echo 'This version of Nextcloud is not compatible with > PHP 8.0.<br/>'; |
|
| 37 | + echo 'You are currently running ' . PHP_VERSION . '.'; |
|
| 38 | + exit(-1); |
|
| 39 | 39 | } |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | if (PHP_VERSION_ID < 70300) { |
| 27 | 27 | http_response_code(500); |
| 28 | 28 | echo 'This version of Nextcloud requires at least PHP 7.3<br/>'; |
| 29 | - echo 'You are currently running ' . PHP_VERSION . '. Please update your PHP version.'; |
|
| 29 | + echo 'You are currently running '.PHP_VERSION.'. Please update your PHP version.'; |
|
| 30 | 30 | exit(-1); |
| 31 | 31 | } |
| 32 | 32 | |
@@ -34,6 +34,6 @@ discard block |
||
| 34 | 34 | if (PHP_VERSION_ID >= 80100) { |
| 35 | 35 | http_response_code(500); |
| 36 | 36 | echo 'This version of Nextcloud is not compatible with > PHP 8.0.<br/>'; |
| 37 | - echo 'You are currently running ' . PHP_VERSION . '.'; |
|
| 37 | + echo 'You are currently running '.PHP_VERSION.'.'; |
|
| 38 | 38 | exit(-1); |
| 39 | 39 | } |
@@ -35,12 +35,12 @@ |
||
| 35 | 35 | $OC_VersionString = '21.0.0 alpha'; |
| 36 | 36 | |
| 37 | 37 | $OC_VersionCanBeUpgradedFrom = [ |
| 38 | - 'nextcloud' => [ |
|
| 39 | - '20.0' => true, |
|
| 40 | - '21.0' => true, |
|
| 41 | - ], |
|
| 42 | - 'owncloud' => [ |
|
| 43 | - ], |
|
| 38 | + 'nextcloud' => [ |
|
| 39 | + '20.0' => true, |
|
| 40 | + '21.0' => true, |
|
| 41 | + ], |
|
| 42 | + 'owncloud' => [ |
|
| 43 | + ], |
|
| 44 | 44 | ]; |
| 45 | 45 | |
| 46 | 46 | // default Nextcloud channel |