vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r19893: LJSUP-9655: minor changes.

Committer: vsukhanov
LJSUP-9655: minor changes.
U   trunk/htdocs/userinfo.bml
Modified: trunk/htdocs/userinfo.bml
===================================================================
--- trunk/htdocs/userinfo.bml	2011-08-30 08:42:18 UTC (rev 19892)
+++ trunk/htdocs/userinfo.bml	2011-08-30 08:49:29 UTC (rev 19893)
@@ -163,7 +163,7 @@
 
     my %friends = ('load'=>1, 'loaded'=>0, 'display'=>1, 'count' => 0);
     my %friendsof = ('load'=>1, 'loaded'=>0, 'display'=>1);
-
+    
     if ($com) {
         $title = $ML{'.title.communityprofile'};
     } elsif ($u->is_person) {
@@ -178,7 +178,7 @@
 
     $windowtitle = $u->display_name . " - $title";
 
-    $friends{'load'} = $friendsof{'load'} = 0 if $com && $u->{'dont_load_members'};
+    $friends{'load'} = $friendsof{'load'} = 0 if $com && $u->prop('dont_load_members');
 
     # do they have the viewall priv?
     # there are no entries on this page, so we just check if they have any viewall, so viewsome
@@ -1528,7 +1528,8 @@
 
         } else {
             $body .= "<p class='inner_section_header first'><span class='expandcollapse on' id='members_header'>" . $arrowimg->("members") . " $ML{'.members.members'}";
-            $body .= " (" . $friends{'count'} . ")";
+            $body .= " (" . $friends{'count'} . ")" if $should_show_friends; 
+
             if (!$should_show_friends) {
                 $body .= ":</span></p><div class='inner_section_body' id='members_body'>" . BML::ml('.friends.viewall.comm2', { aopts => "href='$viewall_url'" }) . "</div>";
             } elsif ($friends{count}) {

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