dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5d5ab1
)
Resolves talk namespace tab having the wrong XML id
author
Trevor Parscal
<tparscal@users.mediawiki.org>
Mon, 6 Jul 2009 22:45:19 +0000
(22:45 +0000)
committer
Trevor Parscal
<tparscal@users.mediawiki.org>
Mon, 6 Jul 2009 22:45:19 +0000
(22:45 +0000)
skins/Vector.php
patch
|
blob
|
history
diff --git
a/skins/Vector.php
b/skins/Vector.php
index
d410c36
..
1a5d586
100644
(file)
--- 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}" ) . '"';