if there is no theme-specific help image then use the default one

merge-requests/30/head
Bob Mottram 2021-02-26 17:01:32 +00:00
parent f2824118a8
commit ce4b415023
1 changed files with 4 additions and 0 deletions

View File

@ -5794,6 +5794,10 @@ class PubServer(BaseHTTPRequestHandler):
iconFilename = mediaStr.split('/')[1]
mediaFilename = \
baseDir + '/theme/' + theme + '/helpimages/' + iconFilename
# if there is no theme-specific help image then use the default one
if not os.path.isfile(mediaFilename):
mediaFilename = \
baseDir + '/theme/default/helpimages/' + iconFilename
if self._etag_exists(mediaFilename):
# The file has not changed
self._304()