If a theme isn't set in config.json then set it to default

main
Bob Mottram 2019-11-12 21:31:19 +00:00
parent 19703c0336
commit 9ec5379a97
1 changed files with 5 additions and 0 deletions

View File

@ -355,6 +355,11 @@ if not os.path.isdir(baseDir+'/cache/announce'):
print('Creating announce cache')
os.mkdir(baseDir+'/cache/announce')
# set the theme in config.json
themeName=getConfigParam(baseDir,'theme')
if not themeName:
setConfigParam(baseDir,'theme','default')
if args.domain:
domain=args.domain
setConfigParam(baseDir,'domain',domain)