Fixed a few errors caused by pull request #112
authorAlexander Ebert <ebert@woltlab.com>
Thu, 18 Aug 2011 19:41:27 +0000 (21:41 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 18 Aug 2011 19:45:54 +0000 (21:45 +0200)
wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php
wcfsetup/install/files/lib/system/template/plugin/IBlockTemplatePlugin.class.php
wcfsetup/install/files/lib/system/template/plugin/ICompilerTemplatePlugin.class.php
wcfsetup/install/files/lib/system/template/plugin/IFunctionTemplatePlugin.class.php
wcfsetup/install/files/lib/system/template/plugin/IModifierTemplatePlugin.class.php
wcfsetup/install/files/lib/system/template/plugin/IPrefilterTemplatePlugin.class.php

index 6604c11f2bc8e662ed6ad8a15167e9aef8069a13..b0ba8138e9d3ce8ef696fe50a77926c94a21783a 100644 (file)
@@ -1,6 +1,8 @@
 <?php
 namespace wcf\system\template;
 use wcf\system\exception\SystemException;
+use wcf\system\template\plugin\ICompilerTemplatePlugin;
+use wcf\system\template\plugin\IPrefilterTemplatePlugin;
 use wcf\util\StringStack;
 use wcf\util\StringUtil;
 
@@ -1368,7 +1370,7 @@ class TemplateScriptingCompiler {
                                $string = $prefilter->execute($templateName, $string, $this);
                        }
                        else {
-                               throw new SystemException($this->formatSyntaxError("Prefilter '".$prefilter."' does not implement the interface 'IPrefilterTemplatePlugin'", $this->currentIdentifier));
+                               throw new SystemException($this->formatSyntaxError("Prefilter '".(is_object($prefilter) ? get_class($prefilter) : $prefilter)."' does not implement the interface 'IPrefilterTemplatePlugin'", $this->currentIdentifier));
                        }
                }
                
index ed0da0fa36b4a1f23f159b1893c970b473c56e97..357ec2d60be337a32e6b8d3a2cc731b8a6482c02 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\template\plugin;
+use wcf\system\template\TemplateEngine;
 
 /**
  * Block functions encloses a template block and operate on the contents of this block.
index 2fd3dbd5b042b541d718587dadfb9a63d6a6509b..91cdcbaa2cea59370458b55c8b21c79cdf52127f 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\template\plugin;
+use wcf\system\template\TemplateScriptingCompiler;
 
 /**
  * Compiler functions are called during the compilation of a template.
index 091f6aec38349a884ebe50a45514cf30decd3e01..bc48b7a42dbf30d01b7c40c49b21cf2299eec36f 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\template\plugin;
+use wcf\system\template\TemplateEngine;
 
 /**
  * Template functions are identical to template blocks, but they have no closing tag.
index 084f76f5e675aa84a1298595a33c79ef0513c1ad..0d2fd1f8b076d6d52aaab8982d589ae0be47bac6 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\template\plugin;
+use wcf\system\template\TemplateEngine;
 
 /**
  * Modifiers are functions that are applied to a variable in the template 
index 051dda67dba26597d726288f04df23798d90743f..8a61d0ef1323d7dcfd9c1ae00a3f276f5a426b62 100644 (file)
@@ -1,5 +1,6 @@
 <?php
 namespace wcf\system\template\plugin;
+use wcf\system\template\TemplateScriptingCompiler;
 
 /**
  * Prefilters are used to process the source of the template immediately before compilation.