holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[livejournal] r22084: LJSUP-12319: We need to display social c...

Committer: akanashin
LJSUP-12319: We need to display social capital for users which turn off Ratings
U   trunk/htdocs/userinfo.bml
Modified: trunk/htdocs/userinfo.bml
===================================================================
--- trunk/htdocs/userinfo.bml	2012-05-28 15:34:11 UTC (rev 22083)
+++ trunk/htdocs/userinfo.bml	2012-05-29 05:40:43 UTC (rev 22084)
@@ -715,8 +715,9 @@
         $soc_capital = LJ::PersonalStats::DB->fetch_raw('ratings', {func => 'get_authority', journal_id => $u->userid}); 
         $soc_capital = int($soc_capital->{result}->{authority}/1000);
         $soc_capital = $soc_capital < 10 ? ' <10 ' : LJ::commafy($soc_capital);
+        $soc_image ||= "<img src='$LJ::IMGPREFIX/profile_icons/social-capital.png?v=17298";
 
-        if ((ref $ua_position eq 'HASH') || (ref $position eq 'HASH' && ( $u->journaltype eq 'C' || LJ::SUP->is_sup_enabled($u)))) {
+        if ($u->journaltype eq 'C' || LJ::SUP->is_sup_enabled($u)) {
                 $body .= "<li class='rating-social-capital'>" .
                          $soc_image .
                          LJ::Lang::ml('ljcom.userinfo.social_capital',{soc_capital => $soc_capital}) . ' ' .

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