Support "rel" attributes on content action links (e.g. rel=archives)
MediaWiki has provided rel=archives for the History link since v1.15.0 (Introduced in r45988 / 4299d27956.). However Vector never used that property until now. Change-Id: I398828b62795955a73823decf00fdbf8496aaeca
This commit is contained in:
parent
3274f57b10
commit
fab055d6a1
@ -469,7 +469,10 @@ class VectorTemplate extends BaseTemplate {
|
||||
?>><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
|
||||
// $link['text'] can be undefined - bug 27764
|
||||
if ( array_key_exists( 'text', $link ) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user