$text = $this->doBlockLevels( $text, $linestart );
$this->replaceLinkHolders( $text );
+
+ # the position of the convert() call should not be changed. it
+ # assumes that the links are all replaces and the only thing left
+ # is the <nowiki> mark.
$text = $wgContLang->convert($text);
$this->mOutput->setTitleText($wgContLang->getParsedTitle());
+
$text = $this->unstripNoWiki( $text, $this->mStripState );
$text = Sanitizer::normalizeCharReferences( $text );
}
}
+ $text = $wgContLang->markNoConversion($text);
+
# Replace & from obsolete syntax with &.
# All HTML entities will be escaped by makeExternalLink()
# or maybeMakeImageLink()
# replacing any non-bracketed links
$trail = $this->replaceFreeExternalLinks( $trail );
+
# Use the encoded URL
# This means that users can paste URLs directly into the text
# Funny characters like ö aren't valid in URLs anyway
* @access private
*/
function replaceFreeExternalLinks( $text ) {
+ global $wgContLang;
$fname = 'Parser::replaceFreeExternalLinks';
wfProfileIn( $fname );
$text = $this->maybeMakeImageLink( $url );
if ( $text === false ) {
# Not an image, make a link
- $text = $sk->makeExternalLink( $url, $url, true, 'free' );
+ $text = $sk->makeExternalLink( $url, $wgContLang->markNoConversion($url), true, 'free' );
}
$s .= $text . $trail;
} else {