core: Replace PHP_VERSION_REQUIRED by static text
The required PHP version is used in one place only and therefore shouldn't require a constant
This commit is contained in:
parent
946e66e9df
commit
5deb86acff
2 changed files with 2 additions and 4 deletions
|
@ -28,8 +28,6 @@ if(file_exists('DEBUG')) {
|
||||||
|
|
||||||
require_once __DIR__ . '/lib/RssBridge.php';
|
require_once __DIR__ . '/lib/RssBridge.php';
|
||||||
|
|
||||||
define('PHP_VERSION_REQUIRED', '5.6.0');
|
|
||||||
|
|
||||||
// Specify directory for cached files (using FileCache)
|
// Specify directory for cached files (using FileCache)
|
||||||
define('CACHE_DIR', __DIR__ . '/cache');
|
define('CACHE_DIR', __DIR__ . '/cache');
|
||||||
|
|
||||||
|
|
|
@ -8,8 +8,8 @@ class Configuration {
|
||||||
public static function verifyInstallation() {
|
public static function verifyInstallation() {
|
||||||
|
|
||||||
// Check PHP version
|
// Check PHP version
|
||||||
if(version_compare(PHP_VERSION, PHP_VERSION_REQUIRED) === -1)
|
if(version_compare(PHP_VERSION, '5.6.0') === -1)
|
||||||
die('RSS-Bridge requires at least PHP version ' . PHP_VERSION_REQUIRED . '!');
|
die('RSS-Bridge requires at least PHP version 5.6.0!');
|
||||||
|
|
||||||
// extensions check
|
// extensions check
|
||||||
if(!extension_loaded('openssl'))
|
if(!extension_loaded('openssl'))
|
||||||
|
|
Loading…
Reference in a new issue