From: Brion Vibber Date: Tue, 12 Jul 2011 00:25:20 +0000 (+0000) Subject: Followup r91833 -- use Sanitizer::escapeId's 'noninitial' option when generating... X-Git-Tag: 1.31.0-rc.0~28919 X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_add%27%29%20%7D%7D?a=commitdiff_plain;h=c56bc576d694e18ed202232c6c4fbdf551b6f432;p=lhc%2Fweb%2Fwiklou.git 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) --- 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 ) == '}}' ) ) {