From: Brion Vibber Date: Fri, 1 Aug 2008 02:02:08 +0000 (+0000) Subject: Fix regression from r38325 -- caused first character of section name in a history... X-Git-Tag: 1.31.0-rc.0~46231 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=2f101a09e25b543cb149bbe989bbe638479af264;p=lhc%2Fweb%2Fwiklou.git 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. :) --- 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' ) ); }