From: Amire80 Date: Sat, 10 Sep 2016 13:41:44 +0000 (+0300) Subject: Add a class to the element of the interlanguage link X-Git-Tag: 1.31.0-rc.0~5246^2 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=d1f19209c30ee82eae31a6264bf8ba77747162ac;p=lhc%2Fweb%2Fwiklou.git Add a class to the element of the interlanguage link This will allow precise querying for this element in the DOM. Some gadgets add other elements, and this make querying not precise. See bug T135378. Change-Id: I06c80945af785477be52096022c8493e7f82c298 --- diff --git a/includes/skins/SkinTemplate.php b/includes/skins/SkinTemplate.php index ed7c6dfd39..3efbd3bfaa 100644 --- a/includes/skins/SkinTemplate.php +++ b/includes/skins/SkinTemplate.php @@ -180,6 +180,7 @@ class SkinTemplate extends Skin { 'text' => $ilLangName, 'title' => $ilTitle, 'class' => $class, + 'link-class' => 'interlanguage-link-target', 'lang' => $ilInterwikiCodeBCP47, 'hreflang' => $ilInterwikiCodeBCP47, ];