Followup r91833 -- use Sanitizer::escapeId's 'noninitial' option when generating...
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 12 Jul 2011 00:25:20 +0000 (00:25 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 12 Jul 2011 00:25:20 +0000 (00:25 +0000)
includes/Skin.php

index 639d8d4..20ba348 100644 (file)
@@ -1336,7 +1336,7 @@ abstract class Skin {
                                        $bar[$heading][] = array_merge( array(
                                                'text' => $text,
                                                'href' => $href,
-                                               'id' => 'n-' . Sanitizer::escapeId( strtr( $line[1], ' ', '-' ) ),
+                                               'id' => 'n-' . Sanitizer::escapeId( strtr( $line[1], ' ', '-' ), 'noninitial' ),
                                                'active' => false
                                        ), $extraAttribs );
                                } elseif ( ( substr( $line, 0, 2 ) == '{{' ) && ( substr( $line, -2 ) == '}}' ) ) {