From 2189403d25b2d21f497cf201f30c3cac1c8fc1e8 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 18 Aug 2011 21:41:27 +0200 Subject: [PATCH] Fixed a few errors caused by pull request #112 --- .../lib/system/template/TemplateScriptingCompiler.class.php | 3 ++- .../lib/system/template/plugin/IBlockTemplatePlugin.class.php | 1 + .../system/template/plugin/ICompilerTemplatePlugin.class.php | 1 + .../system/template/plugin/IFunctionTemplatePlugin.class.php | 1 + .../system/template/plugin/IModifierTemplatePlugin.class.php | 1 + .../system/template/plugin/IPrefilterTemplatePlugin.class.php | 1 + 6 files changed, 7 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php b/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php index 6604c11f2b..8f680d9bb2 100644 --- a/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php +++ b/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php @@ -1,6 +1,7 @@ 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)); } } diff --git a/wcfsetup/install/files/lib/system/template/plugin/IBlockTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/IBlockTemplatePlugin.class.php index ed0da0fa36..357ec2d60b 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/IBlockTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/IBlockTemplatePlugin.class.php @@ -1,5 +1,6 @@