Add target support for view_urls

Bug: T160676
Change-Id: I07890d17fdf86ece3e01cd8fa0c0e572a4d988c5
This commit is contained in:
addshore 2017-06-30 10:54:04 +01:00
parent ef8fc08532
commit f804c100b6

View file

@ -444,6 +444,9 @@ class VectorTemplate extends BaseTemplate {
if ( isset ( $link['rel'] ) ) { if ( isset ( $link['rel'] ) ) {
echo ' rel="' . htmlspecialchars( $link['rel'] ) . '"'; echo ' rel="' . htmlspecialchars( $link['rel'] ) . '"';
} }
if ( isset ( $link['target'] ) ) {
echo ' target="' . htmlspecialchars( $link['target'] ) . '"';
}
?>><?php ?>><?php
// $link['text'] can be undefined - bug 27764 // $link['text'] can be undefined - bug 27764
if ( array_key_exists( 'text', $link ) ) { if ( array_key_exists( 'text', $link ) ) {