diff options
| author | 2026-01-24 20:16:43 +0545 | |
|---|---|---|
| committer | 2026-01-24 15:31:43 +0100 | |
| commit | 85f14f92fdb5c375f0ae4100f50a529a62b480ec (patch) | |
| tree | ce31496afc85b2b8f44eda7db288da68161eb261 /app/Controllers | |
| parent | cb3ea904904b5b170313f285bee884be3df2ff91 (diff) | |
Message for closed registration (#8462)
* Add closed msg field
i18n
fix
* Display based on registration type
* Save as FreshRSS_Context::systemConf()->closed_registration_message instead
* Improve messages
* Revert unrelated changes
* make fix-all
* Minor whitespace
* Simplify logic
* Fix invalid use of empty() and sympler syntax
---------
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/Controllers')
| -rw-r--r-- | app/Controllers/configureController.php | 1 | ||||
| -rw-r--r-- | app/Controllers/userController.php | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/app/Controllers/configureController.php b/app/Controllers/configureController.php index 98a201e26..893fa5478 100644 --- a/app/Controllers/configureController.php +++ b/app/Controllers/configureController.php @@ -609,6 +609,7 @@ class FreshRSS_configure_Controller extends FreshRSS_ActionController { FreshRSS_Context::systemConf()->limits = $limits; FreshRSS_Context::systemConf()->title = Minz_Request::paramString('instance-name') ?: 'FreshRSS'; FreshRSS_Context::systemConf()->force_email_validation = Minz_Request::paramBoolean('force-email-validation'); + FreshRSS_Context::systemConf()->closed_registration_message = Minz_Request::paramString('closed_registration_message') ?: ''; FreshRSS_Context::systemConf()->save(); invalidateHttpCache(); diff --git a/app/Controllers/userController.php b/app/Controllers/userController.php index 6f5b27280..e634c3992 100644 --- a/app/Controllers/userController.php +++ b/app/Controllers/userController.php @@ -65,7 +65,7 @@ class FreshRSS_user_Controller extends FreshRSS_ActionController { * Return if the maximum number of registrations has been reached. * Note a max_registrations of 0 means there is no limit. * - * @return bool true if number of users >= max registrations, false else. + * @return bool true if number of users >= max registrations, false otherwise. */ public static function max_registrations_reached(): bool { $limit_registrations = FreshRSS_Context::systemConf()->limits['max_registrations']; |
