fix wrapper->fmt calls
[mdref/mdref] / 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;