Committer: dnikolaev
LJSUP-11384: Display 25 top entryes on cyr home page instead of 20U trunk/cgi-bin/LJ/Widget/HomepageRU.pm
Modified: trunk/cgi-bin/LJ/Widget/HomepageRU.pm =================================================================== --- trunk/cgi-bin/LJ/Widget/HomepageRU.pm 2012-03-27 07:49:12 UTC (rev 11638) +++ trunk/cgi-bin/LJ/Widget/HomepageRU.pm 2012-03-27 08:00:22 UTC (rev 11639) @@ -77,7 +77,12 @@ ## Ratings if (LJ::is_enabled('personal_stats_ratings')) { - $result{personalstats} = LJ::PersonalStats->get_result_html($remote, { widget => 1, unique_journals => 1, rating_country => $GET->{rating}, length => 25 }, '/ratings/posts/', { homepage => 1 }); + + if (defined $GET->{rating}) { + LJ::PersonalStats::Ratings->set_view_ua_ratings( lc($GET->{rating}) eq 'ua' ); + } + + $result{personalstats} = LJ::PersonalStats->get_result_html($remote, { widget => 1, unique_journals => 1, length => 25 }, '/ratings/posts/', { homepage => 1 }); } ## Widget SUP1MillionPromo