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

[livejournal] r17975: LJSUP-7570. We need to be able to move c...

Committer: gprochaev
LJSUP-7570. We need to be able to move categories from our verticals to other verticals.

U   trunk/cgi-bin/LJ/Browse.pm
Modified: trunk/cgi-bin/LJ/Browse.pm
===================================================================
--- trunk/cgi-bin/LJ/Browse.pm	2010-12-20 07:41:49 UTC (rev 17974)
+++ trunk/cgi-bin/LJ/Browse.pm	2010-12-20 07:54:44 UTC (rev 17975)
@@ -279,8 +279,7 @@
 
     my @categories = ();
     foreach my $cat (@$cats) {
-        my $c = $class->new( catid => $cat->{catid} );
-        $c->absorb_row($cat);
+        my $c = $class->load_by_id($cat->{catid});
         $c->set_memcache;
 
         push @categories, $c;

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