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>
This commit is contained in:
rupak
2026-01-24 20:16:43 +05:45
committed by GitHub
parent cb3ea90490
commit 85f14f92fd
34 changed files with 87 additions and 14 deletions

View File

@@ -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'];