Fixed template copy function
Merge branch 'master' of github.com:WoltLab/WCF