r82472 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r82471‎ | r82472 | r82473 >
Date:19:15, 19 February 2011
Author:ialex
Status:ok (Comments)
Tags:
Comment:
Follow-up r82452: need to transform entries sinces some wiki like to use variables or parser functions in the sidebar
Modified paths:
  • /trunk/phase3/includes/Skin.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Skin.php
@@ -1386,6 +1386,7 @@
13871387 $line = trim( $line, '* ' );
13881388
13891389 if ( strpos( $line, '|' ) !== false ) { // sanity check
 1390+ $line = MessageCache::singleton()->transform( $line, false, null, $this->mTitle );
13901391 $line = array_map( 'trim', explode( '|', $line, 2 ) );
13911392 $link = wfMsgForContent( $line[0] );
13921393

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r82452* Use $this->mTitle instead of $wgTitle...ialex13:39, 19 February 2011

Comments

#Comment by Nikerabbit (talk | contribs)   20:14, 19 February 2011

What's mTitle? It shouldn't be the current (or any other) page. Can we pass a fake title which doesn't match any other title?

Status & tagging log