mirror of https://github.com/JohnHammond/CTFd.git
Fix typecasting bug when using utils.get_config to get theme (#1298)
* Fix a type issue with config values. Related to #929bulk-clear-sessions
parent
d80051bcda
commit
76af4419b6
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue