From 2fe5f26b35ac17a182ee84670c8beaf963195aa1 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 8 Jan 2013 18:15:47 +0100 Subject: [PATCH] Fixed template scripting compiler Fixes #1088 --- .../lib/system/template/TemplateScriptingCompiler.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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( -- 2.20.1