wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r18641: LJSUP-8273. Delete some fields

Committer: gprochaev
LJSUP-8273. Delete some fields

U   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?

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