Merge "Modify footer icons to use $wgExternalLinkTarget"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 1 Mar 2017 19:55:37 +0000 (19:55 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 1 Mar 2017 19:55:37 +0000 (19:55 +0000)
includes/skins/Skin.php

index 85bd09a..a7740a0 100644 (file)
@@ -906,7 +906,10 @@ abstract class Skin extends ContextSource {
                                $html = htmlspecialchars( $icon["alt"] );
                        }
                        if ( $url ) {
-                               $html = Html::rawElement( 'a', [ "href" => $url ], $html );
+                               global $wgExternalLinkTarget;
+                               $html = Html::rawElement( 'a',
+                                       [ "href" => $url, "target" => $wgExternalLinkTarget ],
+                                       $html );
                        }
                }
                return $html;