]> git.koha-community.org Git - koha.git/commit
Bug 13169: C4::Templates::themelanguage fails if the DB is not populated
authorTomas Cohen Arazi <tomascohen@gmail.com>
Fri, 31 Oct 2014 14:00:22 +0000 (11:00 -0300)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Sat, 1 Nov 2014 12:11:07 +0000 (09:11 -0300)
commita4a2159aad6d7276fc7efb9abb24830f7f473102
tree99b2a0e6a7b22c661c5ebcfb5d99acd30e6c53af
parentd4a7fa85807301ceb5268817d035235bdcf313a3
Bug 13169: C4::Templates::themelanguage fails if the DB is not populated

With the aim to remove hardcoded themes the C4::Templates::themelanguage
got dependent on the DB being populated. This patch reintroduced the
hardcoded defaults as a last resort.

To test:
- Do a fresh install, clean your browser's cache, empty DB
- Open the staff interface
=> FAIL: A "Software error" screen shows "Template process failed: file error..."
- Apply the patch
- Reload
=> SUCCESS: The webinstaller prompts for login correctly.
- Sign off :-D

Regards

Signed-off-by: Nick Clemens <nick@quecheelibrary.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
C4/Templates.pm