Extension talk:Link Attributes

From MediaWiki.org
Jump to: navigation, search

It seems that there is a problem with the source code

Line

# $attribsText = Html::expandAttributes( array( 'class' => 'external '.$linktype ) );

should not start from sharp sign # — Preceding unsigned comment added by 208.247.73.130 (talkcontribs)

Invalid signature[edit | edit source]

After taking the above advice (uncommenting the # line in linkattr_ExternalLink), then I reversed the change I made to the 'includes/Linker.php' page. It then gave an error that there was an invalid signature in linkattr_ExternalLink. To fix it, I removed $this, and changed &$linktype to $linktype. That fixed the errors for me.