Support 'rel' attributes in namespace navigation elements

Needed to support 338a6627aadbeab in MediaWiki core.

Bug: T65198
Change-Id: Iff9e22565c5ca667b35cd53e61347a02b06243c6
This commit is contained in:
Kunal Mehta 2015-06-12 18:41:32 -07:00
parent 51f658bf00
commit 3502a6f8d9
1 changed files with 4 additions and 1 deletions

View File

@ -364,7 +364,10 @@ class VectorTemplate extends BaseTemplate {
<li <?php echo $link['attributes'] ?>><span><a href="<?php
echo htmlspecialchars( $link['href'] )
?>" <?php
echo $link['key']
echo $link['key'];
if ( isset ( $link['rel'] ) ) {
echo ' rel="' . htmlspecialchars( $link['rel'] ) . '"';
}
?>><?php
echo htmlspecialchars( $link['text'] )
?></a></span></li>