Fix error in temlate engine
authorSebastian Teumert <sebastian.teumert@gmx.de>
Tue, 10 Mar 2015 10:30:38 +0000 (11:30 +0100)
committerSebastian Teumert <sebastian.teumert@gmx.de>
Tue, 10 Mar 2015 10:30:38 +0000 (11:30 +0100)
commitf15aa129cd77acecab30791cbd8c99fb038fe6c3
tree03d8d7027a5d68be182ffdcad7d05b0d1aabcef0
parent968dcb79c0af9eb6588ad3e7eb6d31141400c509
Fix error in temlate engine

This patch fixes an error in the TemplateScriptingCompiler. Instead of
using `WCF::getTPL()` now the engine which is passed during
initialization is used. This allows one to compile e.g. frontend
templates in the ACP and generally removes an unecessary coupling from
the engine.
wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php