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