I am just starting to look through some changes we made for our Xerte 3.0 site with the intention to update it to Xerte 3.3.
The file 'modules/decision/delete_template.php' seems to handle directory checking incorrectly. This file also seems to be duplicated at 'modules/site/delete_template.php' and 'modules/xerte/delete_template.php'.
Attached is a diff file which seems to correct the problem.