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. --- app/Controllers/configureController.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'app/Controllers/configureController.php') diff --git a/app/Controllers/configureController.php b/app/Controllers/configureController.php index 6358f48c2..917879810 100755 --- a/app/Controllers/configureController.php +++ b/app/Controllers/configureController.php @@ -358,9 +358,6 @@ class FreshRSS_configure_Controller extends Minz_ActionController { Minz_Error::error(403); } - $can_enable_email_validation = version_compare(PHP_VERSION, '5.5') >= 0; - $this->view->can_enable_email_validation = $can_enable_email_validation; - if (Minz_Request::isPost()) { $limits = FreshRSS_Context::$system_conf->limits; $limits['max_registrations'] = Minz_Request::param('max-registrations', 1); @@ -370,9 +367,7 @@ class FreshRSS_configure_Controller extends Minz_ActionController { FreshRSS_Context::$system_conf->limits = $limits; FreshRSS_Context::$system_conf->title = Minz_Request::param('instance-name', 'FreshRSS'); FreshRSS_Context::$system_conf->auto_update_url = Minz_Request::param('auto-update-url', false); - if ($can_enable_email_validation) { - FreshRSS_Context::$system_conf->force_email_validation = Minz_Request::param('force-email-validation', false); - } + FreshRSS_Context::$system_conf->force_email_validation = Minz_Request::param('force-email-validation', false); FreshRSS_Context::$system_conf->save(); invalidateHttpCache(); -- cgit v1.2.3