From: Trevor Parscal Date: Mon, 6 Jul 2009 22:53:58 +0000 (+0000) Subject: Fixes what r52810 broke, making other tabs have the correct XML IDs X-Git-Tag: 1.31.0-rc.0~41086 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=0bd7a84dd4b0e653a35f79cd5218dffdabceddd2;p=lhc%2Fweb%2Fwiklou.git Fixes what r52810 broke, making other tabs have the correct XML IDs --- 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 ) . '"';