web: fix country flags

The flags have been moved into the ui folder so
the web server was looking in the wrong place
This commit is contained in:
Damien Churchill 2011-10-21 21:49:34 +01:00
parent b724f74700
commit d37c3e0213
1 changed files with 2 additions and 1 deletions

View File

@ -300,7 +300,8 @@ class Flag(resource.Resource):
def render(self, request):
headers = {}
path = ("data", "pixmaps", "flags", request.country.lower() + ".png")
path = ("ui", "data", "pixmaps", "flags",
request.country.lower() + ".png")
filename = common.resource_filename("deluge", os.path.join(*path))
if os.path.exists(filename):
request.setHeader("cache-control",