- use separate (clean) directory to avoid messing up with stale cache
data or other files in the temporary dir
- restore filenames for twig templates in Gettext files, the lines still
don't match, but at least the filename is correct
- extract the _gettext function as well
Signed-off-by: Michal Čihař <michal@cihar.com>
Share one directory for Twig cache, SHP import and file uploads.
The code now also validates the cache directory and creates it on the
fly, so it properly detects if the directory can not be used.
Also the documentation has been improved to document securing this
directory.
Fixes#13225Fixes#13226
Signed-off-by: Michal Čihař <michal@cihar.com>
- Add script to generate cache files for all Twig templates
- Add option in Twig extension that bypass autoescaping
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>