Fixing broken tooltip/accesskey's for view_urls in Vector. Thanks JeroenDeDauw for...
authorKrinkle <krinkle@users.mediawiki.org>
Fri, 13 May 2011 10:26:20 +0000 (10:26 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Fri, 13 May 2011 10:26:20 +0000 (10:26 +0000)
skins/Vector.php

index 442cb1d..8b53945 100644 (file)
@@ -378,7 +378,7 @@ class VectorTemplate extends BaseTemplate {
        <h5><?php $this->msg('views') ?></h5>
        <ul<?php $this->html('userlangattributes') ?>>
                <?php foreach ( $this->data['view_urls'] as $link ): ?>
-                       <li<?php echo $link['attributes'] ?>><span><a href="<?php echo htmlspecialchars( $link['href'] ) ?>" <?php echo $link['key'] ?>><?php
+                       <li<?php echo $link['attributes'] ?>><span><a href="<?php echo htmlspecialchars( $link['href'] ) ?>" <?php echo Xml::expandAttributes( $link['key'] ); ?>><?php
                                // $link['text'] can be undefined - bug 27764
                                if ( array_key_exists( 'text', $link ) ) {
                                        echo array_key_exists( 'img', $link ) ?  '<img src="' . $link['img'] . '" alt="' . $link['text'] . '" />' : htmlspecialchars( $link['text'] );