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

[livejournal] r17730: LJSUP-7052.

Committer: gprochaev
LJSUP-7052.

U   trunk/htdocs/admin/browse/add_category.bml
Modified: trunk/htdocs/admin/browse/add_category.bml
===================================================================
--- trunk/htdocs/admin/browse/add_category.bml	2010-11-19 07:32:30 UTC (rev 17729)
+++ trunk/htdocs/admin/browse/add_category.bml	2010-11-19 07:55:05 UTC (rev 17730)
@@ -47,10 +47,10 @@
             }
 
             # Has a valid parent category been chosen
-            my $pcategory = LJ::Browse->load_by_url("/browse" . ($vertical ? '' : '/community_directory') . $parentcaturl);
+            my $pcategory = LJ::Browse->load_by_url("/browse" . $parentcaturl);
 
             # Does a category with the same URL path and parent already exist?
-            my $existcat = LJ::Browse->load_by_url("/browse" . ($vertical ? $parentcaturl : '/community_directory' . $parentcaturl) . $newcaturl);
+            my $existcat = LJ::Browse->load_by_url("/browse" . $parentcaturl . $newcaturl);
             push @errors, "Category already exists" if $existcat;
 
             next if @errors;
@@ -100,7 +100,7 @@
 
     # Get the full list of categories
     my @categories = LJ::Browse->load_all($vertical);
-    my @caturls = map { { text => $_->{pretty_name}, value => $_->uri } } @categories;
+    my @caturls = map { { text => $_->{pretty_name}, value => $_->url_path } } @categories;
 
     $ret .= LJ::html_select({
                 name => 'parentcaturl',

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