diff options
| author | 2021-01-14 17:28:45 -0500 | |
|---|---|---|
| committer | 2021-01-14 23:28:45 +0100 | |
| commit | 29fe125b4a18f7107b50e54c69184c4f1777bbf6 (patch) | |
| tree | d76446252588f6db51b50a697ff7649894817aa2 /app/Controllers/configureController.php | |
| parent | e3457f7d7b56509048e3c1f53f05f278656e976c (diff) | |
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.
Diffstat (limited to 'app/Controllers/configureController.php')
| -rwxr-xr-x | app/Controllers/configureController.php | 7 |
1 files changed, 1 insertions, 6 deletions
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(); |
