Hello!
did somebody noticed that language_redirect does not handle windows line
endings?
it redirects me to something like /uk/%0D instead of just /uk/
i tried to fix it myself but this:
q = lambda { |str| /;q=/ =~ str ? Float($') : 1 }
langs = langs.collect do |ele|
[q.call(ele), ele.split(/;/)[0].downcase]
end.sort { |l, r| r[0] <=> l[0] }.collect { |ele| ele[1] }
is strangest code i've ever seen in my life :D
isn't ruby supposed to be easy-readable? ;)
--
Regards, Keymone
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant