Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable10] Adjust error message to say PHP X.X like previous line. #29828

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@
// because base.php will already use 5.6 syntax.
if (version_compare(PHP_VERSION, '5.6.0') === -1) {
echo 'This version of ownCloud requires at least PHP 5.6.0<br/>';
echo 'You are currently running ' . PHP_VERSION . '. Please update your PHP version.';
echo 'You are currently running PHP ' . PHP_VERSION . '. Please update your PHP version.';
return;
}

// Show warning if PHP 7.2 is used as ownCloud is not compatible with PHP 7.2
if (version_compare(PHP_VERSION, '7.2.0alpha1') !== -1) {
echo 'This version of ownCloud is not compatible with PHP 7.2<br/>';
echo 'You are currently running ' . PHP_VERSION . '.';
echo 'You are currently running PHP ' . PHP_VERSION . '.';
return;
}

Expand Down