Committer: gprochaev
LJSUP-8273. Delete some fieldsU trunk/htdocs/community/directory.bml
Modified: trunk/htdocs/community/directory.bml =================================================================== --- trunk/htdocs/community/directory.bml 2011-03-21 04:50:58 UTC (rev 18640) +++ trunk/htdocs/community/directory.bml 2011-03-21 05:06:39 UTC (rev 18641) @@ -116,7 +116,13 @@ my @catrem; # Get categories the community belongs to or is pending approval for my @listings = LJ::Browse->get_submitted_communities( comm => $c ); - $limit = @listings if (@listings > $limit); + if (@listings > 2) { + $limit = @listings; + } elsif ($ref_vert_id && @listings < 2) { + $limit = @listings + 1; + } else { + $limit = 2; + } foreach my $i (1..$limit) { ## which category the user wants to add a community?