From: Matthias Schmidt Date: Sat, 5 Sep 2020 11:58:51 +0000 (+0200) Subject: Fix condition in `AnchorFunctionTemplatePlugin` X-Git-Tag: 5.3.0_Alpha_1~6 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0149838dba55a237885831df5aec961c33cfcf63;p=GitHub%2FWoltLab%2FWCF.git Fix condition in `AnchorFunctionTemplatePlugin` --- 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 . "'."); }