Merge branch 'fix-version-check' into 'develop'
Fix php version check See merge request framasoft/framadate!223
This commit is contained in:
commit
872e30939c
@ -86,7 +86,7 @@ $conf_filename = $inc_directory . 'config.php';
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// PHP Version
|
// PHP Version
|
||||||
if (version_compare(PHP_VERSION, PHP_NEEDED_VERSION)) {
|
if (version_compare(PHP_VERSION, PHP_NEEDED_VERSION) >= 0) {
|
||||||
$messages[] = new Message('info', __f('Check','PHP version %s is enough (needed at least PHP %s).', PHP_MAJOR_VERSION . "." . PHP_MINOR_VERSION, PHP_NEEDED_VERSION));
|
$messages[] = new Message('info', __f('Check','PHP version %s is enough (needed at least PHP %s).', PHP_MAJOR_VERSION . "." . PHP_MINOR_VERSION, PHP_NEEDED_VERSION));
|
||||||
} else {
|
} else {
|
||||||
$messages[] = new Message('danger', __f('Check','Your PHP version (%s) is too old. This application needs at least PHP %s.', phpversion(), PHP_NEEDED_VERSION));
|
$messages[] = new Message('danger', __f('Check','Your PHP version (%s) is too old. This application needs at least PHP %s.', phpversion(), PHP_NEEDED_VERSION));
|
||||||
|
Loading…
Reference in New Issue
Block a user