Fixed custom theme loader

This commit is contained in:
str4d
2012-12-14 21:51:45 +00:00
parent cd5adeb859
commit b6809fd093

View File

@@ -89,7 +89,7 @@ def detect_theme():
theme = request.cookies['style']
if 'theme' in request.args.keys():
theme = request.args['theme']
if not os.path.isfile(safe_join('static/styles', '%s.css' % theme)):
if not os.path.isfile(safe_join(safe_join(STATIC_DIR, 'styles'), '%s.css' % theme)):
theme = 'duck'
g.theme = theme
@after_this_request