Fix condition in `AnchorFunctionTemplatePlugin`
authorMatthias Schmidt <gravatronics@live.com>
Sat, 5 Sep 2020 11:58:51 +0000 (13:58 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 5 Sep 2020 11:58:51 +0000 (13:58 +0200)
wcfsetup/install/files/lib/system/template/plugin/AnchorFunctionTemplatePlugin.class.php

index 75c6efdb75521b54b4ebb421db388eb239454f90..f8296a1f4326b06c058a729ca2d4e2f471811b25 100644 (file)
@@ -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 . "'.");
                        }