[ticket/11727] Template loader support for safe directories to load files from

PHPBB3-11727