[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 RatingsU 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}) . ' ' .
