From: Tim Starling Date: Tue, 14 Dec 2010 09:01:48 +0000 (+0000) Subject: Fixed comments and indenting style from r68491. X-Git-Tag: 1.31.0-rc.0~33322 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22messagerie%22%29%20.%20%22?a=commitdiff_plain;h=36d43eabc04a4c1446cd10fa2557f7a97ee72370;p=lhc%2Fweb%2Fwiklou.git Fixed comments and indenting style from r68491. --- diff --git a/includes/Linker.php b/includes/Linker.php index 476878e814..4d73e7a92a 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -712,8 +712,8 @@ class Linker { wfProfileOut( __METHOD__ ); return '' . - htmlspecialchars( $prefix . $text . $inside, ENT_NOQUOTES ) . '' . $trail; + htmlspecialchars( $title->getPrefixedText(), ENT_QUOTES ) . '">' . + htmlspecialchars( $prefix . $text . $inside, ENT_NOQUOTES ) . '' . $trail; } else { wfProfileOut( __METHOD__ ); return $this->linkKnown( $title, "$prefix$text$inside", array(), $query ) . $trail; diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 2c70cae1fd..4a6df0df15 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -1829,9 +1829,10 @@ class Parser { $text = $link; } else { # Bug 4598 madness. Handle the quotes only if they come from the alternate part - # [[Lista d''e paise d''o munno]] -> Lista d''e paise d''o munno - # [[Criticism of Harry Potter|Criticism of ''Harry Potter'']] -> Criticism of Harry Potter - $text = $this->doQuotes($text); + # [[Lista d''e paise d''o munno]] -> Lista d''e paise d''o munno + # [[Criticism of Harry Potter|Criticism of ''Harry Potter'']] + # -> Criticism of Harry Potter + $text = $this->doQuotes( $text ); } # Link not escaped by : , create the various objects