Show
Ignore:
Timestamp:
07/09/08 02:47:30 (17 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/AtomServer.pm

    r2434 r2737  
    786786    return $app->error(403, "Access denied") 
    787787        unless $app->{perms}->can_edit_entry($entry, $app->{user}); 
     788 
     789    # Delete archive file 
     790    my $blog = MT::Blog->load($entry->blog_id); 
     791    my %recip = $app->publisher->rebuild_deleted_entry( 
     792        Entry => $entry, 
     793        Blog  => $blog); 
     794 
     795    # Rebuild archives 
     796    $app->rebuild_archives( 
     797        Blog             => $blog, 
     798        Recip            => \%recip, 
     799    ) or die _fault($app->errstr); 
     800 
     801    # Remove object 
    788802    $entry->remove 
    789803        or return $app->error(500, $entry->errstr); 
    790     $app->publish($entry, 1) or return $app->error(500, $app->errstr); 
    791804    ''; 
    792805}