mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Updated PHP version check to 5.5.9
This commit is contained in:
parent
2153a8e227
commit
faa3a5e620
@ -48,6 +48,9 @@ class StartupCheck
|
||||
$file = storage_path() . '/version.txt';
|
||||
$version = @file_get_contents($file);
|
||||
if ($version != NINJA_VERSION) {
|
||||
if (version_compare(phpversion(), '5.5.9', '<')) {
|
||||
dd('Please update PHP to >= 5.5.9');
|
||||
}
|
||||
$handle = fopen($file, 'w');
|
||||
fwrite($handle, NINJA_VERSION);
|
||||
fclose($handle);
|
||||
|
@ -26,8 +26,8 @@
|
||||
|
||||
<div class="jumbotron">
|
||||
<h2>Invoice Ninja Setup</h2>
|
||||
@if (version_compare(phpversion(), '5.4.0', '<'))
|
||||
<div class="alert alert-warning">Warning: The application requires PHP >= 5.4.0</div>
|
||||
@if (version_compare(phpversion(), '5.5.9', '<'))
|
||||
<div class="alert alert-warning">Warning: The application requires PHP >= 5.5.9</div>
|
||||
@endif
|
||||
@if (!function_exists('proc_open'))
|
||||
<div class="alert alert-warning">Warning: <a href="http://php.net/manual/en/function.proc-open.php" target="_blank">proc_open</a> must be enabled.</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user