From: saptaks Date: Sun, 4 Oct 2015 18:43:59 +0000 (+0530) Subject: Modify footer icons to use $wgExternalLinkTarget X-Git-Tag: 1.31.0-rc.0~3934^2 X-Git-Url: http://git.cyclocoop.org//%22%22._DIR_PLUGIN_FULLCALENDAR.%22prive/themes/spip/images/event_edit.png/%22?a=commitdiff_plain;h=235c8e28833f84e09e7ccf5d7c15fff6d61518e8;p=lhc%2Fweb%2Fwiklou.git Modify footer icons to use $wgExternalLinkTarget Bug: T109979 Change-Id: Ie3d30c4070e8d336b735bac0a389564ae6115234 --- diff --git a/includes/skins/Skin.php b/includes/skins/Skin.php index 85bd09aa0d..a7740a093d 100644 --- a/includes/skins/Skin.php +++ b/includes/skins/Skin.php @@ -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;