Index: trunk/phase3/skins/Vector.php |
— | — | @@ -374,14 +374,12 @@ |
375 | 375 | foreach ( $nav as $section => $links ) { |
376 | 376 | foreach ( $links as $key => $link ) { |
377 | 377 | $xmlID = $key; |
378 | | - if ( isset( $link['context'] ) ) { |
379 | | - if ( $link['context'] == 'subject' ) { |
380 | | - $xmlID = 'ca-nstab-' . $xmlID; |
381 | | - } else if ( $link['context'] == 'talk' ) { |
382 | | - $xmlID = 'ca-talk'; |
383 | | - } else { |
384 | | - $xmlID = 'ca-' . $xmlID; |
385 | | - } |
| 378 | + if ( isset( $link['context'] ) && $link['context'] == 'subject' ) { |
| 379 | + $xmlID = 'ca-nstab-' . $xmlID; |
| 380 | + } else if ( isset( $link['context'] ) && $link['context'] == 'talk' ) { |
| 381 | + $xmlID = 'ca-talk'; |
| 382 | + } else { |
| 383 | + $xmlID = 'ca-' . $xmlID; |
386 | 384 | } |
387 | 385 | $nav[$section][$key]['attributes'] = |
388 | 386 | ' id="' . Sanitizer::escapeId( $xmlID ) . '"'; |