Resolves talk namespace tab having the wrong XML id
authorTrevor Parscal <tparscal@users.mediawiki.org>
Mon, 6 Jul 2009 22:45:19 +0000 (22:45 +0000)
committerTrevor Parscal <tparscal@users.mediawiki.org>
Mon, 6 Jul 2009 22:45:19 +0000 (22:45 +0000)
skins/Vector.php

index d410c36..1a5d586 100644 (file)
@@ -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}" ) . '"';