Show
Ignore:
Timestamp:
07/09/08 02:47:30 (16 months ago)
Author:
takayama
Message:

Fixed BugId:80382
* Changed to removes fileinfo records when entry was deleted.

  • CMS, Atom and XMLRPC
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-41/lib/MT/XMLRPCServer.pm

    r2709 r2737  
    687687    die _fault(MT->translate("Permission denied.")) 
    688688        unless $perms && $perms->can_edit_entry($entry, $author); 
     689 
     690    # Delete archive file 
     691    my $blog = MT::Blog->load($entry->blog_id); 
     692    my %recip = $mt->publisher->rebuild_deleted_entry( 
     693        Entry => $entry, 
     694        Blog  => $blog); 
     695 
     696    # Rebuild archives 
     697    $mt->rebuild_archives( 
     698        Blog             => $blog, 
     699        Recip            => \%recip, 
     700    ) or die _fault($class->errstr); 
     701 
     702    # Remove object 
    689703    $entry->remove; 
    690704 
     
    696710    }); 
    697711 
    698     if ($publish) { 
    699         $class->_publish($mt, $entry, 1) or die _fault($class->errstr); 
    700     } 
    701712    SOAP::Data->type(boolean => 1); 
    702713}