From 2f101a09e25b543cb149bbe989bbe638479af264 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 1 Aug 2008 02:02:08 +0000 Subject: [PATCH] Fix regression from r38325 -- caused first character of section name in a history link to be trimmed. Title::setFragment() does not do what you'd think it does. :) --- includes/Linker.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Linker.php b/includes/Linker.php index 5a820d4cc8..852ea801bb 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -1233,7 +1233,7 @@ class Linker { $sectionTitle = Title::newFromText( '#' . $section ); } else { $sectionTitle = wfClone( $title ); - $sectionTitle->setFragment( $section ); + $sectionTitle->mFragment = $section; } $link = $this->link( $sectionTitle, wfMsgForContent( 'sectionlink' ) ); } -- 2.20.1