Fixed template scripting compiler
authorAlexander Ebert <ebert@woltlab.com>
Tue, 8 Jan 2013 17:15:47 +0000 (18:15 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 8 Jan 2013 17:15:47 +0000 (18:15 +0100)
Fixes #1088

wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php

index cb5abc710a92350c60a275277bc092a6a5be8e84..ea3b6e3155ec3d40208606c2674ed520c2aae321 100644 (file)
@@ -788,8 +788,7 @@ class TemplateScriptingCompiler {
                        }
                        if (!empty($phpCode)) $phpCode = "<?php\n".$phpCode."\n?>";
                        
-                       $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(