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

[ljcom] r12235: LJSUP-12691: Users page Manage ratings

Committer: dnikolaev
LJSUP-12691: Users page Manage ratings

U   trunk/cgi-bin/LJ/Widget/HomepageRU.pm
Modified: trunk/cgi-bin/LJ/Widget/HomepageRU.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/HomepageRU.pm	2012-07-05 15:45:54 UTC (rev 12234)
+++ trunk/cgi-bin/LJ/Widget/HomepageRU.pm	2012-07-06 09:06:32 UTC (rev 12235)
@@ -7,6 +7,8 @@
 use LJ::Widget::RatingTop10;
 use LJ::Widget::VideoForHomePage;
 use LJ::PersonalStats;
+use LJ::PersonalStats::Ratings::BlackList;
+use LJ::PersonalStats::Ratings::Posts::Top;
 use LJ::TimeUtil;
 
 sub get_page_params {
@@ -82,7 +84,21 @@
             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, length_reserve => 25 }, '/ratings/posts/', { homepage => 1 });
+        my $entries_top = LJ::PersonalStats::Ratings::Posts::Top->new( {
+            # 'country'         => STRING (cyr | noncyr | ua)
+            'sort'             => 'visitors',
+            'length'           => 50,
+            'filter_func'      => LJ::PersonalStats::Ratings::BlackList::get_rating_filter_func($remote),
+            'filter_commpromo' => 1,
+            'filter_selfpromo' => 1,
+            'filter_featured'  => 0,
+        } );
+
+        $result{personalstats} = $entries_top->template_output( {
+            'show_length'      => 25,
+            'homepage'         => 1,
+            'widget'           => 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