Fixed wrong template name passed to compileString()
authorAlexander Ebert <ebert@woltlab.com>
Thu, 9 Feb 2012 13:45:59 +0000 (14:45 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 9 Feb 2012 13:45:59 +0000 (14:45 +0100)
wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php

index 47bee243ecba401701cc5fe8fb9e942b8baabdb9..3bef6a5d2309f42f79531c8791dd33967bbf4568 100644 (file)
@@ -799,7 +799,7 @@ class TemplateScriptingCompiler {
                        $sourceFilename = WCF::getTPL()->getSourceFilename($templateName, $tplPackageID);
                        $metaDataFilename = WCF::getTPL()->getMetaDataFilename($templateName, $tplPackageID);
                        
-                       $data = $this->compileString($identifier, file_get_contents($sourceFilename), array(
+                       $data = $this->compileString($templateName, file_get_contents($sourceFilename), array(
                                'data' => null,
                                'filename' => '',
                                'packageID' => $tplPackageID