Apply toLowerCase when reading featured articles

Consistently with getInterlanguageList(). Without this 'nds-NL'
will be handled incorrectly when the article in it is featured.

Bug: T143527
Change-Id: Ie7fe5a270cb3030899b6034512351d5d66d7be06
This commit is contained in:
Amire80
2016-08-21 15:48:05 +03:00
parent 4b533b4749
commit 0d1d9a4b6d

View File

@@ -378,7 +378,7 @@
*/ */
CompactInterlanguageList.prototype.filterByBadges = function () { CompactInterlanguageList.prototype.filterByBadges = function () {
return $( '#p-lang' ).find( '[class*="badge"]' ).map( function ( i, el ) { return $( '#p-lang' ).find( '[class*="badge"]' ).map( function ( i, el ) {
return $( el ).find( 'a' ).attr( 'lang' ); } return $( el ).find( 'a' ).attr( 'lang' ).toLowerCase(); }
).toArray(); ).toArray();
}; };