From: Alexander Ebert Date: Tue, 8 Jan 2013 17:15:47 +0000 (+0100) Subject: Fixed template scripting compiler X-Git-Tag: 2.0.0_Beta_1~577 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2fe5f26b35ac17a182ee84670c8beaf963195aa1;p=GitHub%2FWoltLab%2FWCF.git Fixed template scripting compiler Fixes #1088 --- diff --git a/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php b/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php index cb5abc710a..ea3b6e3155 100644 --- a/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php +++ b/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php @@ -788,8 +788,7 @@ class TemplateScriptingCompiler { } if (!empty($phpCode)) $phpCode = ""; - $tplPackageID = WCF::getTPL()->getPackageID($templateName, $metaData['application']); - $sourceFilename = WCF::getTPL()->getSourceFilename($templateName, $tplPackageID); + $sourceFilename = WCF::getTPL()->getSourceFilename($templateName, $metaData['application']); $metaDataFilename = WCF::getTPL()->getMetaDataFilename($templateName); $data = $this->compileString($templateName, file_get_contents($sourceFilename), array(