Changeset 282 for DeleteAndRebuild

Show
Ignore:
Timestamp:
02/05/07 14:47:38 (22 months ago)
Author:
ogawa
Message:

Just a little bit fix to avoid removing entry archives when there's no individual entry archive template.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • DeleteAndRebuild/trunk/DeleteAndRebuild.pl

    r281 r282  
    2222    my ($eh, $app, $obj) = @_; 
    2323    $app->rebuild_entry(Entry => $obj, BuildDependencies => 1); 
    24     if ($app->config('DeleteFilesAtRebuild')) { 
    25         $app->publisher->remove_entry_archive_file(Entry => $obj); 
    26     } 
     24    $app->publisher->remove_entry_archive_file(Entry => $obj, ArchiveType => 'Individual') 
     25        if $app->config('DeleteFilesAtRebuild'); 
    2726}