if ( $wikiId !== null ) {
$thelink = Linker::makeExternalLink(
- WikiMap::getForeignURL( $wikiId, $target->getPrefixedURL() ),
+ WikiMap::getForeignURL( $wikiId, $target->getFullText() ),
$linkText . $inside,
- true
+ /* escape = */ false // Already escaped
) . $trail;
} else {
$thelink = Linker::link(
if ( $titleObj->quickUserCan( 'edit' ) ) {
$editLink = self::link(
$titleObj,
- wfMessage( 'editlink' )->text(),
+ wfMessage( 'editlink' )->escaped(),
array(),
array( 'action' => 'edit' )
);
} else {
$editLink = self::link(
$titleObj,
- wfMessage( 'viewsourcelink' )->text(),
+ wfMessage( 'viewsourcelink' )->escaped(),
array(),
array( 'action' => 'edit' )
);