Browse Source

Fix the loading of alternative skins

Closes #1392
pull/1397/head
Safihre 5 years ago
parent
commit
350ea662b5
  1. 4
      SABnzbd.py

4
SABnzbd.py

@ -280,9 +280,9 @@ def identify_web_template(key, defweb, wdir):
def check_template_scheme(color, web_dir):
""" Check existence of color-scheme """
if color and os.path.exists(os.path.join(web_dir, 'static/stylesheets/colorschemes/' + color + '.css')):
if color and os.path.exists(os.path.join(web_dir, 'static', 'stylesheets', 'colorschemes', color + '.css')):
return color
elif color and os.path.exists(os.path.join(web_dir, 'static/stylesheets/colorschemes/' + color)):
elif color and os.path.exists(os.path.join(web_dir, 'static', 'stylesheets', 'colorschemes', color)):
return color
else:
return ''

Loading…
Cancel
Save