fix wrapper->fmt calls
authorMichael Wallner <mike@php.net>
Thu, 27 Jan 2022 15:06:05 +0000 (16:06 +0100)
committerMichael Wallner <mike@php.net>
Thu, 27 Jan 2022 15:06:05 +0000 (16:06 +0100)
mdref/Formatter/Wrapper.php

index 400de29822fa04d820d9822faf369cbdf9876d96..d2696d357e18060c1149e81091721f3d599e192f 100644 (file)
@@ -199,7 +199,7 @@ class Wrapper {
                        $span->setAttribute("class", "constant");
                        $span->textContent = $item;
                        if (!$strict && $pld->currentSection === "Constants:" && $node->parentNode->nodeName === "li" && $node->parentNode->firstChild === $node) {
-                               $perm = $this->createPermaLink($span, $this->formatSlug($item), $pld);
+                               $perm = $this->fmt->createPermaLink($span, $this->fmt->formatSlug($item), $pld);
                                $span->insertBefore($perm);
                        }
                        return $span;