]> git.koha-community.org Git - koha.git/commit
Bug 17989: Extend bad template check
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Mon, 30 Jan 2017 08:24:22 +0000 (09:24 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 1 Nov 2017 16:10:17 +0000 (13:10 -0300)
commit7703723508195ca116e2ea7d766ff741149d2efc
tree316817d91ecd1df72184c88e5c1e7f4e595d6d2f
parent411d0cf8ead451099704237549a899bb216aece3
Bug 17989: Extend bad template check

The check is now extended by only allowing templates from the regular
Koha template directories and additional plugin directories as defined
in koha-conf.xml.

Note: In order to prevent an uninitialized warning on $theme from sub
themelanguage for a not-existing file, I added a trivial assignment. Will
get further attention in a follow-up.

Test plan:
[1] Run t/db_dependent/Auth.t
[2] Run t/db_dependent/Templates.t

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/Templates.pm
t/db_dependent/Templates.t