r95460 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95459‎ | r95460 | r95461 >
Date:07:03, 25 August 2011
Author:dantman
Status:ok
Tags:needs-php-test 
Comment:
Use getLinkURL instead of getLocalURL for titles from MediaWiki:Sidebar so that #Fragments are not discarded when the user uses them.
Modified paths:
  • /trunk/phase3/includes/Skin.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Skin.php
@@ -1168,7 +1168,7 @@
11691169
11701170 if ( $title ) {
11711171 $title = $title->fixSpecialName();
1172 - $href = $title->getLocalURL();
 1172+ $href = $title->getLinkURL();
11731173 } else {
11741174 $href = 'INVALID-TITLE';
11751175 }

Status & tagging log