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

[ljcom] r12306: LJSUP-12658: LiveJournal Ratings for 24 ...

Committer: dnikolaev
LJSUP-12658: LiveJournal Ratings for 24 hours

U   trunk/cgi-bin/LJ/Widget/HomepageEN.pm
U   trunk/cgi-bin/LJ/Widget/HomepageRU.pm
Modified: trunk/cgi-bin/LJ/Widget/HomepageEN.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/HomepageEN.pm	2012-07-17 14:09:06 UTC (rev 12305)
+++ trunk/cgi-bin/LJ/Widget/HomepageEN.pm	2012-07-18 10:16:25 UTC (rev 12306)
@@ -151,7 +151,7 @@
     $result{personalstats} = LJ::PersonalStats->get_result_html($remote, { widget => 1, unique_journals => 1, rating_country => $GET->{rating}, length => 25 }, '/ratings/posts/', { homepage => 1 });
 
     ## Widget RatingTop10
-    $result{widget_ratingtop10_comms} = LJ::Widget::RatingTopJournals->render(what => 'communities', sup => 0);
+    $result{widget_ratingtop10_comms} = LJ::Widget::RatingTopJournals->render(what => 'communities', country => 'noncyr');
 
     ## Widget SUP1MillionPromo
     $result{widget_sup1millionpromo} = LJ::Widget::SUP1MillionPromo->render;

Modified: trunk/cgi-bin/LJ/Widget/HomepageRU.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/HomepageRU.pm	2012-07-17 14:09:06 UTC (rev 12305)
+++ trunk/cgi-bin/LJ/Widget/HomepageRU.pm	2012-07-18 10:16:25 UTC (rev 12306)
@@ -157,9 +157,20 @@
         }
 
         my $output = {};
-        $result{widget_ratingtop10_users} = LJ::Widget::RatingTopJournals->render('what' => 'users',       'sort' => $rating_top_journals_sort, 'output' => $output);
-        $result{widget_ratingtop10_comms} = LJ::Widget::RatingTopJournals->render('what' => 'communities', 'sort' => $rating_top_journals_sort, 'output' => $output);
 
+        $result{widget_ratingtop10_users} = LJ::Widget::RatingTopJournals->render(
+            'what'    => 'users',
+            'sort'    => $rating_top_journals_sort,
+            # 'country' => ???, # do not define 'country', use default value
+            'output'  => $output,
+        );
+
+        $result{widget_ratingtop10_comms} = LJ::Widget::RatingTopJournals->render(
+            'what'    => 'communities',
+            'sort'    => $rating_top_journals_sort,
+            'output'  => $output,
+        );
+
         LJ::Request->set_cookie('rating_top_journals_sort' => $output->{'sort'}, 'expires' => time + 60*60*24*180);
     }
 

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