mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-06 23:14:13 -04:00
Require direct references to configuration variables. (#10985)
This removes the magic allowing accessing configurable variables directly from the config object. It is now required that a specific configuration class is used (e.g. `config.foo` must be replaced with `config.server.foo`).
This commit is contained in:
parent
829f2a82b0
commit
f4b1a9a527
31 changed files with 124 additions and 160 deletions
|
@ -67,12 +67,8 @@ class AccountValidityHandler:
|
|||
and self._account_validity_renew_by_email_enabled
|
||||
):
|
||||
# Don't do email-specific configuration if renewal by email is disabled.
|
||||
self._template_html = (
|
||||
hs.config.account_validity.account_validity_template_html
|
||||
)
|
||||
self._template_text = (
|
||||
hs.config.account_validity.account_validity_template_text
|
||||
)
|
||||
self._template_html = hs.config.email.account_validity_template_html
|
||||
self._template_text = hs.config.email.account_validity_template_text
|
||||
self._renew_email_subject = (
|
||||
hs.config.account_validity.account_validity_renew_email_subject
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue