From: Trevor Parscal Date: Mon, 6 Jul 2009 22:45:19 +0000 (+0000) Subject: Resolves talk namespace tab having the wrong XML id X-Git-Tag: 1.31.0-rc.0~41088 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/rappels.php?a=commitdiff_plain;h=fea9135612a9d6f3b43f9e52f9b015fbfe2eaea6;p=lhc%2Fweb%2Fwiklou.git Resolves talk namespace tab having the wrong XML id --- diff --git a/skins/Vector.php b/skins/Vector.php index d410c36d30..1a5d5862fd 100644 --- a/skins/Vector.php +++ b/skins/Vector.php @@ -374,8 +374,13 @@ class VectorTemplate extends QuickTemplate { foreach ( $nav as $section => $links ) { foreach ( $links as $key => $link ) { $insert = ''; - if ( isset( $link['context'] ) && $link['context'] == 'subject' ) { - $insert = 'nstab-'; + if ( isset( $link['context'] ) ) { + if ( $link['context'] == 'subject' ) { + $insert = 'nstab-'; + } + if ( $link['context'] == 'talk' ) { + $key = 'talk'; + } } $nav[$section][$key]['attributes'] = ' id="' . Sanitizer::escapeId( "ca-{$insert}{$key}" ) . '"';