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:
logmanoriginal 2018-11-05 19:07:33 +01:00
parent 946e66e9df
commit 5deb86acff
2 changed files with 2 additions and 4 deletions

View file

@ -28,8 +28,6 @@ if(file_exists('DEBUG')) {
require_once __DIR__ . '/lib/RssBridge.php';
define('PHP_VERSION_REQUIRED', '5.6.0');
// Specify directory for cached files (using FileCache)
define('CACHE_DIR', __DIR__ . '/cache');

View file

@ -8,8 +8,8 @@ class Configuration {
public static function verifyInstallation() {
// Check PHP version
if(version_compare(PHP_VERSION, PHP_VERSION_REQUIRED) === -1)
die('RSS-Bridge requires at least PHP version ' . PHP_VERSION_REQUIRED . '!');
if(version_compare(PHP_VERSION, '5.6.0') === -1)
die('RSS-Bridge requires at least PHP version 5.6.0!');
// extensions check
if(!extension_loaded('openssl'))