Fix regression from r38325 -- caused first character of section name in a history...
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 1 Aug 2008 02:02:08 +0000 (02:02 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 1 Aug 2008 02:02:08 +0000 (02:02 +0000)
Title::setFragment() does not do what you'd think it does. :)

includes/Linker.php

index 5a820d4..852ea80 100644 (file)
@@ -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' ) );
                        }