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.
}
if (!empty($phpCode)) $phpCode = "<?php\n".$phpCode."\n?>";
- $sourceFilename = WCF::getTPL()->getSourceFilename($templateName, $application);
- $metaDataFilename = WCF::getTPL()->getMetaDataFilename($templateName);
+ $sourceFilename = $this->template->getSourceFilename($templateName, $application);
+ $metaDataFilename = $this->template->getMetaDataFilename($templateName);
$data = $this->compileString($templateName, file_get_contents($sourceFilename), array(
'application' => $application,