From 36d43eabc04a4c1446cd10fa2557f7a97ee72370 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Tue, 14 Dec 2010 09:01:48 +0000 Subject: [PATCH] Fixed comments and indenting style from r68491. --- includes/Linker.php | 4 ++-- includes/parser/Parser.php | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) 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 -- 2.20.1