mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue