Fix wrong SiteConfig mentions (#13739)
This commit is contained in:
parent
3c92419311
commit
f7293c3544
2 changed files with 2 additions and 2 deletions
|
|
@ -3,7 +3,7 @@ module RateLimitCheckerHelper
|
|||
"create within any 5 minute period?".freeze
|
||||
|
||||
def self.new_user_message(thing)
|
||||
timeframe = "day".pluralize(SiteConfig.user_considered_new_days)
|
||||
timeframe = "day".pluralize(Settings::RateLimit.user_considered_new_days)
|
||||
format(NEW_USER_MESSAGE, thing: thing, timeframe: timeframe)
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ module Constants
|
|||
user_considered_new_days: {
|
||||
description: "The number of days a user is considered new. The default is 3 days, but you "\
|
||||
"can disable this entirely by inputting 0.",
|
||||
placeholder: ::SiteConfig.user_considered_new_days
|
||||
placeholder: ::Settings::RateLimit.user_considered_new_days
|
||||
}
|
||||
}.freeze
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue