Первый фоллен на хелле (wildkin) wrote in changelog,
Первый фоллен на хелле
wildkin
changelog

[ljcom] r11639: LJSUP-11384: Display 25 top entryes on c...

Committer: dnikolaev
LJSUP-11384: Display 25 top entryes on cyr home page instead of 20

U   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

Tags: dnikolaev, ljcom, pm, wildkin
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments