From: Daniel Friesen Date: Thu, 25 Aug 2011 07:03:25 +0000 (+0000) Subject: Use getLinkURL instead of getLocalURL for titles from MediaWiki:Sidebar so that ... X-Git-Tag: 1.31.0-rc.0~28078 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=251bef7543c856b16ecfdba3308dca2909a969a3;p=lhc%2Fweb%2Fwiklou.git Use getLinkURL instead of getLocalURL for titles from MediaWiki:Sidebar so that #Fragments are not discarded when the user uses them. --- diff --git a/includes/Skin.php b/includes/Skin.php index fada374d50..36d56c604b 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -1168,7 +1168,7 @@ abstract class Skin extends ContextSource { if ( $title ) { $title = $title->fixSpecialName(); - $href = $title->getLocalURL(); + $href = $title->getLinkURL(); } else { $href = 'INVALID-TITLE'; }