From b6809fd09301d3b09653804939024d8d798617cf Mon Sep 17 00:00:00 2001 From: str4d Date: Fri, 14 Dec 2012 21:51:45 +0000 Subject: [PATCH] Fixed custom theme loader --- i2p2www/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i2p2www/__init__.py b/i2p2www/__init__.py index c8d98b11..e512eb75 100644 --- a/i2p2www/__init__.py +++ b/i2p2www/__init__.py @@ -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