Changeset 988

Show
Ignore:
Timestamp:
12/27/06 07:48:33 (2 years ago)
Author:
fumiakiy
Message:

Check if DeleteFilesAtRebuild and do appropirate action on the entries listing screen. BugId: 46190

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/wheeljack/lib/MT/App/CMS.pm

    r987 r988  
    57205720        my $entry = MT::Entry->load($id, {cached_ok=>1}) or return $app->errtrans("One of the entries ([_1]) did not actually exist", $id); 
    57215721        next if $entry->status == $new_status; 
     5722        if ($app->config('DeleteFilesAtRebuild') && (MT::Entry::RELEASE() eq $entry->status)) { 
     5723            $app->publisher->remove_entry_archive_file( Entry => $entry ); 
     5724        } 
    57225725        $entry->status($new_status); 
    57235726        $entry->save() and $rebuild_these{$id} = 1; 
     
    1266112664Called by the draft_entries and publish_entries handlers to actually 
    1266212665apply the updates to the entries identified and republish pages that 
    12663 are necessary. 
     12666are necessary.  If DeleteFilesAtRebuild directive is set to 1, it also 
     12667removes the previously published individual entry archive page if the 
     12668new status for the entry is the one other than RELEASE. 
    1266412669 
    1266512670=head1 CUSTOM REBUILD OPTIONS