r84324 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r84323‎ | r84324 | r84325 >
Date:13:00, 19 March 2011
Author:ialex
Status:ok
Tags:
Comment:
Fix fatal from r83823
Modified paths:
  • /trunk/phase3/includes/parser/Parser.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/parser/Parser.php
@@ -1975,13 +1975,11 @@
19761976 if ( is_string( $query ) ) {
19771977 $query = wfCgiToArray( $query );
19781978 }
1979 -
1980 - $sk = $this->mOptions->getSkin( $this->mTitle );
1981 -
19821979 if ( $text == '' ) {
1983 - $text = $sk->linkText( $title );
 1980+ $text = htmlspecialchars( $nt->getPrefixedText() );
19841981 }
19851982
 1983+ $sk = $this->mOptions->getSkin( $this->mTitle );
19861984 $link = $sk->linkKnown( $nt, "$prefix$text$inside", array(), $query );
19871985
19881986 return $this->armorLinks( $link ) . $trail;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r83823Make Parser::makeKnownLinkHolder() call Linker::linkKnown() instead of deprec...ialex14:00, 13 March 2011

Status & tagging log