Use default theme for icons

main
Bob Mottram 2020-11-15 18:17:37 +00:00
parent f18f358241
commit 6c25df764f
1 changed files with 3 additions and 3 deletions

View File

@ -4839,9 +4839,9 @@ class PubServer(BaseHTTPRequestHandler):
if path.endswith('.png'):
mediaStr = path.split('/icons/')[1]
if '/' not in mediaStr:
self._404()
return
theme = mediaStr.split('/')[0]
theme = 'default'
else:
theme = mediaStr.split('/')[0]
iconFilename = mediaStr.split('/')[1]
mediaFilename = \
baseDir + '/theme/' + theme + '/icons/' + iconFilename