]> git.koha-community.org Git - koha.git/commit
Bug 12539: Follow up to fix fallback theme
authorBernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Sun, 3 Aug 2014 12:41:37 +0000 (09:41 -0300)
committerChris Cormack <chrisc@catalyst.net.nz>
Wed, 29 Oct 2014 20:35:12 +0000 (09:35 +1300)
commitcb1f2c60c06f6029c54acb087090aa62469554ba
tree09278b669c1b616091ca2702c15b3df1bd72d676
parent96bfcdcb86998e93a45e1365fef3da29c34efe59
Bug 12539: Follow up to fix fallback theme

The is a problem in the logic, fallback must be:
1. Requested (theme, lang, tmpl)
a. return    (theme, lang, tmpl), if not
b. return    (fallback, lang, tmpl), if not
c. return    (theme, 'en', tmpl), if not as last resort
d. return    (fallback, 'en', tmpl)

Previous patch missed option 'c', worked for CCSR
but not bootstrap, sorry.

Signed-off-by: Petter Goksoyr Asen <boutrosboutrosboutros@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
C4/Templates.pm