fixed #94
This commit is contained in:
parent
6c880893fc
commit
a80c5757b0
@ -43,10 +43,6 @@ class Requirements extends Controller
|
||||
{
|
||||
$requirements = array();
|
||||
|
||||
if (version_compare(PHP_VERSION, '5.6.4', '<')) {
|
||||
$requirements[] = trans('install.requirements.php_version');
|
||||
}
|
||||
|
||||
if (ini_get('safe_mode')) {
|
||||
$requirements[] = trans('install.requirements.disabled', ['feature' => 'Safe Mode']);
|
||||
}
|
||||
|
@ -6,6 +6,14 @@
|
||||
* @link https://akaunting.com
|
||||
*/
|
||||
|
||||
// Define minimum supported PHP version
|
||||
define('AKAUNTING_PHP', '5.6.4');
|
||||
|
||||
// Check PHP version
|
||||
if (version_compare(PHP_VERSION, AKAUNTING_PHP, '<')) {
|
||||
die('Your host needs to use PHP ' . AKAUNTING_PHP . ' or higher to run Akaunting');
|
||||
}
|
||||
|
||||
// Register the auto-loader
|
||||
require(__DIR__.'/bootstrap/autoload.php');
|
||||
|
||||
|
@ -17,7 +17,6 @@ return [
|
||||
],
|
||||
|
||||
'requirements' => [
|
||||
'php_version' => 'PHP 5.6.4 or above needs to be used!',
|
||||
'enabled' => ':feature needs to be enabled!',
|
||||
'disabled' => ':feature needs to be disabled!',
|
||||
'extension' => ':extension extension needs to be loaded!',
|
||||
|
Loading…
x
Reference in New Issue
Block a user