Support 'rel' attributes in namespace navigation elements
Needed to support 338a6627aadbeab in MediaWiki core. Bug: T65198 Change-Id: Iff9e22565c5ca667b35cd53e61347a02b06243c6
This commit is contained in:
parent
51f658bf00
commit
3502a6f8d9
|
@ -364,7 +364,10 @@ class VectorTemplate extends BaseTemplate {
|
||||||
<li <?php echo $link['attributes'] ?>><span><a href="<?php
|
<li <?php echo $link['attributes'] ?>><span><a href="<?php
|
||||||
echo htmlspecialchars( $link['href'] )
|
echo htmlspecialchars( $link['href'] )
|
||||||
?>" <?php
|
?>" <?php
|
||||||
echo $link['key']
|
echo $link['key'];
|
||||||
|
if ( isset ( $link['rel'] ) ) {
|
||||||
|
echo ' rel="' . htmlspecialchars( $link['rel'] ) . '"';
|
||||||
|
}
|
||||||
?>><?php
|
?>><?php
|
||||||
echo htmlspecialchars( $link['text'] )
|
echo htmlspecialchars( $link['text'] )
|
||||||
?></a></span></li>
|
?></a></span></li>
|
||||||
|
|
Loading…
Reference in New Issue