thexerteproject / xerteonlinetoolkits

Xerte Online Toolkits
www.xerte.org.uk
Apache License 2.0
62 stars 61 forks source link

If a project has set a theme that does not exist in the installation, the buttons are messed up #1213

Closed torinfo closed 1 year ago

torinfo commented 1 year ago

In 3.12, when viewing a project with a theme that does not exist, the buttons are all messed up.

I fixed this in x_getThemeInfo (in xenith,js). If the retrieval of the theme's info file fails with a 404, the theme is reset to default.

torinfo commented 1 year ago

Also, apparently if th etheme is not set at all (project from 2015) than it still does not work.

Easily fixed by setting x_params.theme to "default" in that case.