From 29fe125b4a18f7107b50e54c69184c4f1777bbf6 Mon Sep 17 00:00:00 2001 From: Alexis Degrugillier Date: Thu, 14 Jan 2021 17:28:45 -0500 Subject: Add constant for PHP requirements (#3369) * Add constant for PHP requirements This new constant is used for PHP version check. This way, we won't forget to modify some part of the code base. * Remove PHP version checks Some checks were obsolete because they were checking unsupported PHP versions. --- lib/lib_rss.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/lib_rss.php') diff --git a/lib/lib_rss.php b/lib/lib_rss.php index 9afcc8636..aaa644faf 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -1,6 +1,6 @@ version_compare(PHP_VERSION, '5.5.0') >= 0, + 'php' => version_compare(PHP_VERSION, FRESHRSS_MIN_PHP_VERSION) >= 0, 'minz' => file_exists(LIB_PATH . '/Minz'), 'curl' => extension_loaded('curl'), 'pdo' => $pdo_mysql || $pdo_sqlite || $pdo_pgsql, -- cgit v1.2.3