*
* @return string
*/
- public static function formatLinksInComment( $comment, $title = null, $local = false, $wikiId = null ) {
+ public static function formatLinksInComment(
+ $comment, $title = null, $local = false, $wikiId = null
+ ) {
return preg_replace_callback(
'/
\[\[
$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>";