Index: trunk/phase3/includes/parser/Parser.php |
— | — | @@ -1975,13 +1975,11 @@ |
1976 | 1976 | if ( is_string( $query ) ) { |
1977 | 1977 | $query = wfCgiToArray( $query ); |
1978 | 1978 | } |
1979 | | - |
1980 | | - $sk = $this->mOptions->getSkin( $this->mTitle ); |
1981 | | - |
1982 | 1979 | if ( $text == '' ) { |
1983 | | - $text = $sk->linkText( $title ); |
| 1980 | + $text = htmlspecialchars( $nt->getPrefixedText() ); |
1984 | 1981 | } |
1985 | 1982 | |
| 1983 | + $sk = $this->mOptions->getSkin( $this->mTitle ); |
1986 | 1984 | $link = $sk->linkKnown( $nt, "$prefix$text$inside", array(), $query ); |
1987 | 1985 | |
1988 | 1986 | return $this->armorLinks( $link ) . $trail; |