holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[livejournal] r21258: LJSUP-11387: Social capital does not app...

Committer: akanashin
LJSUP-11387: Social capital does not appear in profile for 2000-th user
U   trunk/htdocs/userinfo.bml
Modified: trunk/htdocs/userinfo.bml
===================================================================
--- trunk/htdocs/userinfo.bml	2012-02-28 09:17:17 UTC (rev 21257)
+++ trunk/htdocs/userinfo.bml	2012-02-28 09:22:09 UTC (rev 21258)
@@ -695,7 +695,7 @@
                 $soc_capital = LJ::commafy(int($position->{result}->{value}/1000));
                 $body .= "<li class='rating-place'>" .
                          $diagram_image .
-                         LJ::Lang::ml($href_rating, {rating_place => LJ::commafy(++$position->{result}->{position}), 
+                         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"}) .
                          "</li>"; 
@@ -705,7 +705,7 @@
                 $soc_capital = LJ::commafy(int($ua_position->{result}->{value}/1000));
                 $body .= "<li class='rating-place'>" .
                          $diagram_image .
-                         LJ::Lang::ml($ua_href_rating, {rating_place => LJ::commafy(++$ua_position->{result}->{position}), 
+                         LJ::Lang::ml($ua_href_rating, {rating_place => LJ::commafy($ua_position->{result}->{position}+1), 
                                                         url_rating => $LJ::SITEROOT . "/ratings/" . ($u->journaltype eq 'C' ? 'community' : 'users') .
                                                         "?country=ua&askname=" . $u->username . "#ask_position"}) .
                          "</li>"; 

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