Saptak013 has uploaded a new change for review. https://gerrit.wikimedia.org/r/243484
Change subject: Footer icons modified to follow $wgExternalLinkTarget ...................................................................... Footer icons modified to follow $wgExternalLinkTarget Change-Id: Ie3d30c4070e8d336b735bac0a389564ae6115234 --- M includes/skins/Skin.php 1 file changed, 2 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/84/243484/1 diff --git a/includes/skins/Skin.php b/includes/skins/Skin.php index 4e6201c..d7b088d 100644 --- a/includes/skins/Skin.php +++ b/includes/skins/Skin.php @@ -917,7 +917,8 @@ $html = htmlspecialchars( $icon["alt"] ); } if ( $url ) { - $html = Html::rawElement( 'a', array( "href" => $url ), $html ); + global $wgExternalLinkTarget; + $html = Html::rawElement( 'a', array( "href" => $url, "target" => $wgExternalLinkTarget ), $html ); } } return $html; -- To view, visit https://gerrit.wikimedia.org/r/243484 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ie3d30c4070e8d336b735bac0a389564ae6115234 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Saptak013 <saptak...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits