Merge "Avoid double word-separator when using Linker::userToolLinks"
[lhc/web/wiklou.git] / includes / Linker.php
index 11f73f6..dd224ef 100644 (file)
@@ -1750,6 +1750,14 @@ class Linker {
                $link, $legacyAnchor = false
        ) {
                $ret = "<h$level$attribs"
+                       . Html::element( 'a',
+                               array(
+                                       'href' => '#' . $anchor,
+                                       'class' => 'mw-headline-anchor',
+                                       'title' => wfMessage( 'headline-anchor-title' )->text()
+                               ),
+                               wfMessage( 'section-symbol' )->text()
+                       )
                        . "<span class=\"mw-headline\" id=\"$anchor\">$html</span>"
                        . $link
                        . "</h$level>";