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:
parent
b724f74700
commit
d37c3e0213
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue