From c56bc576d694e18ed202232c6c4fbdf551b6f432 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 12 Jul 2011 00:25:20 +0000 Subject: [PATCH] Followup r91833 -- use Sanitizer::escapeId's 'noninitial' option when generating sanitized ID for a sidebar entry; the actual id is prefixed with 'n-'; this fix makes the items behave like the folder sections ('p-', already escaped this way) --- includes/Skin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Skin.php b/includes/Skin.php index 639d8d456e..20ba348052 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -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 ) == '}}' ) ) { -- 2.20.1