X-Git-Url: https://git.cyclocoop.org/admin/?a=blobdiff_plain;f=maintenance%2FdumpBackup.php;h=9bf1222121adda053b0a3e40206f5baf77533b21;hb=e54511ae37c0b6a0a8ef8fe328cf0825f0e1ebfb;hp=190432517ddc94fe7a2e166711bc9ec23448f82a;hpb=f9d7d3b8561dab3ddfd8798a77a5b72e03ac8c2b;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/dumpBackup.php b/maintenance/dumpBackup.php index 190432517d..9bf1222121 100644 --- a/maintenance/dumpBackup.php +++ b/maintenance/dumpBackup.php @@ -50,6 +50,8 @@ TEXT $this->addOption( 'stable', 'Dump stable versions of pages' ); $this->addOption( 'revrange', 'Dump range of revisions specified by revstart and ' . 'revend parameters' ); + $this->addOption( 'orderrevs', 'Dump revisions in ascending revision order ' . + '(implies dump of a range of pages)' ); $this->addOption( 'pagelist', 'Dump only pages included in the file', false, true ); // Options @@ -102,7 +104,9 @@ TEXT $this->fatalError( "Unable to open file {$filename}\n" ); } $pages = array_map( 'trim', $pages ); - $this->pages = array_filter( $pages, create_function( '$x', 'return $x !== "";' ) ); + $this->pages = array_filter( $pages, function ( $x ) { + return $x !== ''; + } ); } if ( $this->hasOption( 'start' ) ) { @@ -125,6 +129,7 @@ TEXT $this->skipFooter = $this->hasOption( 'skip-footer' ); $this->dumpUploads = $this->hasOption( 'uploads' ); $this->dumpUploadFileContents = $this->hasOption( 'include-files' ); + $this->orderRevs = $this->hasOption( 'orderrevs' ); } }