forked from indymedia/epicyon
Ensure that a theme exists before setting it
parent
54224094a9
commit
ea1bf2caa3
|
@ -5807,8 +5807,9 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
os.remove(self.server.baseDir +
|
||||
'/fonts/custom.' + ext +
|
||||
'.etag')
|
||||
setTheme(self.server.baseDir,
|
||||
getTheme(self.server.baseDir))
|
||||
currTheme = getTheme(self.server.baseDir)
|
||||
if currTheme:
|
||||
setTheme(self.server.baseDir, currTheme)
|
||||
|
||||
if fields.get('mediaInstance'):
|
||||
self.server.mediaInstance = False
|
||||
|
|
Loading…
Reference in New Issue