[mb-commits] branch, beta, updated. MBS-4108: reverse sort in order to correctly preference same-language wikiped...

MusicBrainz Git Server <[email protected]>
Newsgroups gmane.comp.audio.musicbrainz.cvs
Message-ID <E1TdqHg-0001CF-18@wiley>
The branch, beta has been updated
       via  http://git.musicbrainz.org/gitweb/?p=musicbrainz-server/core.git;a=commit;h=b524e5378a1896e517017bf517eb175a7c36d82d (commit)
      from  http://git.musicbrainz.org/gitweb/?p=musicbrainz-server/core.git;a=commit;h=a2a2f115a57d711a2678af4d202b49ad525e5d0a (commit)

Summary of changes:
 .../Server/Controller/Role/WikipediaExtract.pm     |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit b524e5378a1896e517017bf517eb175a7c36d82d
Author: Ian McEwen <[email protected]>
Date:   Wed Nov 28 15:38:18 2012 -0700

    MBS-4108: reverse sort in order to correctly preference same-language wikipedia links

diff --git a/lib/MusicBrainz/Server/Controller/Role/WikipediaExtract.pm b/lib/MusicBrainz/Server/Controller/Role/WikipediaExtract.pm
index a2ab947..0286788 100644
--- a/lib/MusicBrainz/Server/Controller/Role/WikipediaExtract.pm
+++ b/lib/MusicBrainz/Server/Controller/Role/WikipediaExtract.pm
@@ -28,7 +28,7 @@ sub _get_extract
 
     my ($wp_link) = map {
             $_->target;
-        } sort {
+        } reverse sort {
             if (defined $_) {
                 my $l = $_->target;
                 $l->language eq $wanted_lang;

-----------------------------------------------------------------------


hooks/post-receive
-- 
mb_server
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.