Skip to content

Commit

Permalink
Handle filemissing in grabFiles
Browse files Browse the repository at this point in the history
  • Loading branch information
TehKittyCat committed Oct 7, 2023
1 parent 110c0bf commit 2173ada
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions grabFiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@ function processFile( $entry ) {
$count = 0;

foreach ( $entry['imageinfo'] as $fileVersion ) {
// Skip missing file version.
if ( isset( $fileVersion['filemissing'] ) ) {
$this->output( "Skipping missing file version...\n" );
continue;
}

# Api returns file revisions from new to old.
# WARNING: If a new version of a file is uploaded after the start of the script
# (or endDate), the file and all its previous revisions would be skipped,
Expand Down

0 comments on commit 2173ada

Please sign in to comment.