holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[livejournal] r21809: LJSUP-11961: Display social capital for ...

Committer: akanashin
LJSUP-11961: Display social capital for all users and communities
U   trunk/htdocs/userinfo.bml
Modified: trunk/htdocs/userinfo.bml
===================================================================
--- trunk/htdocs/userinfo.bml	2012-04-26 11:01:57 UTC (rev 21808)
+++ trunk/htdocs/userinfo.bml	2012-04-26 11:38:18 UTC (rev 21809)
@@ -695,11 +695,12 @@
                 $soc_image = "<img src='$LJ::IMGPREFIX/profile_icons/" . ($position->{result}->{position}!=0 ? 'social-capital.png?v=17298' : 'korona.png?v=17319') . "'/>";
                 $soc_capital = int($position->{result}->{value}/1000);
                 $soc_capital = $soc_capital < 10 ? ' < 10 ' : LJ::commafy($soc_capital);
+                my $country  = LJ::SUP->is_sup_enabled($u) ? 'cyr' : 'noncyr';
                 $body .= "<li class='rating-place'>" .
                          $diagram_image .
                          LJ::Lang::ml($href_rating, {rating_place => LJ::commafy($position->{result}->{position}+1),
                                                      url_rating => $LJ::SITEROOT . "/ratings/" . ($u->journaltype eq 'C' ? 'community' : 'users') .
-                                                     "?country=cyr&askname=" . $u->username . "#ask_position"}) .
+                                                     "?country=$country&askname=" . $u->username . "#ask_position"}) .
                          "</li>";
         }
         if (ref $ua_position eq 'HASH') {

Tags: akanashin, bml, holyandrew, livejournal
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