forked from indymedia/epicyon
Reverse extension sequence
parent
aaefa01adf
commit
d5b9bad0cb
4
theme.py
4
theme.py
|
@ -626,7 +626,7 @@ def setThemeImages(baseDir: str, name: str) -> None:
|
|||
|
||||
backgroundNames = ('login', 'shares', 'delete', 'follow',
|
||||
'options', 'block', 'search', 'calendar')
|
||||
extensions = ('png', 'jpg', 'gif')
|
||||
extensions = ('gif', 'jpg', 'png')
|
||||
|
||||
for subdir, dirs, files in os.walk(baseDir + '/accounts'):
|
||||
for acct in dirs:
|
||||
|
@ -653,7 +653,7 @@ def setThemeImages(baseDir: str, name: str) -> None:
|
|||
copyfile(backgroundImageFilename,
|
||||
baseDir + '/accounts/' + backgroundType +
|
||||
'-background.' + ext)
|
||||
break
|
||||
continue
|
||||
except BaseException:
|
||||
pass
|
||||
# background image was not found
|
||||
|
|
Loading…
Reference in New Issue