From 0149838dba55a237885831df5aec961c33cfcf63 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sat, 5 Sep 2020 13:58:51 +0200 Subject: [PATCH] Fix condition in `AnchorFunctionTemplatePlugin` --- .../template/plugin/AnchorFunctionTemplatePlugin.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/template/plugin/AnchorFunctionTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/AnchorFunctionTemplatePlugin.class.php index 75c6efdb75..f8296a1f43 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/AnchorFunctionTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/AnchorFunctionTemplatePlugin.class.php @@ -55,7 +55,7 @@ class AnchorFunctionTemplatePlugin implements IFunctionTemplatePlugin { $content = $object->getTitle(); } else if (isset($tagArgs['link']) && isset($tagArgs['content'])) { - if (!($tagArgs['link'] instanceof ILinkableObject) && !ClassUtil::isDecoratedInstanceOf($tagArgs['link'], ITitledLinkObject::class)) { + if (!($tagArgs['link'] instanceof ILinkableObject) && !ClassUtil::isDecoratedInstanceOf($tagArgs['link'], ILinkableObject::class)) { throw new \InvalidArgumentException("'link' attribute does not implement interface '" . ILinkableObject::class . "'."); } -- 2.20.1