Skip to content

Commit

Permalink
Fixed #1213 - If a project has set a theme that does not exist in the…
Browse files Browse the repository at this point in the history
… installation, the buttons are messed up
  • Loading branch information
torinfo committed May 3, 2023
1 parent c55e440 commit 5488f0f
Showing 1 changed file with 11 additions and 2 deletions.
Expand Up @@ -776,8 +776,17 @@ function x_getThemeInfo(thisTheme, themeChg) {

x_setUpThemeBtns(themeInfo, themeChg);
},
error: function() {
x_setUpThemeBtns({}, themeChg);
error: function(err) {
if (err.status == 404)
{
// Fall back to default
x_params.theme = "default";
x_setUpThemeBtns({ imgbtns: 'true' }, themeChg);
}
else
{
x_setUpThemeBtns({}, themeChg);
}
}
});
}
Expand Down

0 comments on commit 5488f0f

Please sign in to comment.