From fea9135612a9d6f3b43f9e52f9b015fbfe2eaea6 Mon Sep 17 00:00:00 2001 From: Trevor Parscal Date: Mon, 6 Jul 2009 22:45:19 +0000 Subject: [PATCH] Resolves talk namespace tab having the wrong XML id --- skins/Vector.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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}" ) . '"'; -- 2.20.1