mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-11 03:55:43 +00:00
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):
|
def render(self, request):
|
||||||
headers = {}
|
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))
|
filename = common.resource_filename("deluge", os.path.join(*path))
|
||||||
if os.path.exists(filename):
|
if os.path.exists(filename):
|
||||||
request.setHeader("cache-control",
|
request.setHeader("cache-control",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user