From 0bd7a84dd4b0e653a35f79cd5218dffdabceddd2 Mon Sep 17 00:00:00 2001 From: Trevor Parscal Date: Mon, 6 Jul 2009 22:53:58 +0000 Subject: [PATCH] Fixes what r52810 broke, making other tabs have the correct XML IDs --- skins/Vector.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/skins/Vector.php b/skins/Vector.php index 1558fe4f5e..c46393c0a9 100644 --- a/skins/Vector.php +++ b/skins/Vector.php @@ -374,14 +374,12 @@ class VectorTemplate extends QuickTemplate { foreach ( $nav as $section => $links ) { foreach ( $links as $key => $link ) { $xmlID = $key; - if ( isset( $link['context'] ) ) { - if ( $link['context'] == 'subject' ) { - $xmlID = 'ca-nstab-' . $xmlID; - } else if ( $link['context'] == 'talk' ) { - $xmlID = 'ca-talk'; - } else { - $xmlID = 'ca-' . $xmlID; - } + if ( isset( $link['context'] ) && $link['context'] == 'subject' ) { + $xmlID = 'ca-nstab-' . $xmlID; + } else if ( isset( $link['context'] ) && $link['context'] == 'talk' ) { + $xmlID = 'ca-talk'; + } else { + $xmlID = 'ca-' . $xmlID; } $nav[$section][$key]['attributes'] = ' id="' . Sanitizer::escapeId( $xmlID ) . '"'; -- 2.20.1