forked from indymedia/epicyon
Calling theme function from variable
parent
4d4836fac0
commit
313a5131fd
3
theme.py
3
theme.py
|
@ -276,8 +276,7 @@ def setTheme(baseDir: str, name: str) -> bool:
|
||||||
themes = getThemesList()
|
themes = getThemesList()
|
||||||
for themeName in themes:
|
for themeName in themes:
|
||||||
if name == themeName.lower():
|
if name == themeName.lower():
|
||||||
themeFunctionName = 'setTheme' + themeName
|
globals()['setTheme' + themeName](baseDir)
|
||||||
themeFunctionName(baseDir)
|
|
||||||
result = True
|
result = True
|
||||||
|
|
||||||
if not result:
|
if not result:
|
||||||
|
|
Loading…
Reference in New Issue