mirror of
https://github.com/aljazceru/CTFd.git
synced 2026-01-31 11:54:23 +01:00
Fix typecasting bug when using utils.get_config to get theme (#1298)
* Fix a type issue with config values. Related to #929
This commit is contained in:
@@ -96,7 +96,7 @@ class ThemeLoader(FileSystemLoader):
|
||||
return super(ThemeLoader, self).get_source(environment, template)
|
||||
|
||||
# Load regular theme data
|
||||
theme = utils.get_config("ctf_theme")
|
||||
theme = str(utils.get_config("ctf_theme"))
|
||||
template = "/".join([theme, "templates", template])
|
||||
return super(ThemeLoader, self).get_source(environment, template)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user