Skip to content
Snippets Groups Projects
Commit 0f61b41f authored by gnaegi's avatar gnaegi
Browse files

OO-650 support for custom themes js files

parent abfd5869
No related branches found
No related tags found
No related merge requests found
......@@ -75,6 +75,10 @@ public class Theme {
private File getCustomJSFile() {
String staticThemesPath = WebappHelper.getContextRoot() + "/static/themes/";
File themeFolder = new File(staticThemesPath, Settings.getGuiThemeIdentifyer());
if (!themeFolder.exists() && Settings.getGuiCustomThemePath() != null) {
// fallback to custom themes folder
themeFolder = new File(Settings.getGuiCustomThemePath(), Settings.getGuiThemeIdentifyer());
}
return new File(themeFolder, CUSTOMFILENAME);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment