mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-22 13:18:24 +00:00
Merge remote-tracking branch 'origin/master' into nightly
This commit is contained in:
commit
b3ef12c3fd
1
changelog.d/20230714_100627_kyle.md
Normal file
1
changelog.d/20230714_100627_kyle.md
Normal file
@ -0,0 +1 @@
|
||||
- [Bugfix] Improve `tutor ... do settheme default` so that it reverts to the default theme rather than trying to switch to a nonexistent theme named "default". This will clear up some error noise from LMS/CMS logs. (by @kdmccormick)
|
@ -216,7 +216,8 @@ def assign_theme(name, domain):
|
||||
site.name = domain[:name_max_length]
|
||||
site.save()
|
||||
site.themes.all().delete()
|
||||
site.themes.create(theme_dir_name=name)
|
||||
if name != 'default':
|
||||
site.themes.create(theme_dir_name=name)
|
||||
"""
|
||||
domain_names = domain_names or [
|
||||
"{{ LMS_HOST }}",
|
||||
|
Loading…
x
Reference in New Issue
Block a user