diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2009-02-22 13:37:51 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2009-02-22 13:37:51 +0100 |
commit | b9b85843572bf283f48285001e276ba7e61b63f6 (patch) | |
tree | 4c6f4571552ada9ccfb4030481dcf77308f8b254 /maintenance/storage/compressOld.inc | |
parent | d9a20acc4e789cca747ad360d87ee3f3e7aa58c1 (diff) |
updated to MediaWiki 1.14.0
Diffstat (limited to 'maintenance/storage/compressOld.inc')
-rw-r--r-- | maintenance/storage/compressOld.inc | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/maintenance/storage/compressOld.inc b/maintenance/storage/compressOld.inc index 52b9c40b..fb8cc422 100644 --- a/maintenance/storage/compressOld.inc +++ b/maintenance/storage/compressOld.inc @@ -4,10 +4,6 @@ * @ingroup Maintenance ExternalStorage */ -/** */ -require_once( 'Revision.php' ); -require_once( 'ExternalStoreDB.php' ); - /** @todo document */ function compressOldPages( $start = 0, $extdb = '' ) { $fname = 'compressOldPages'; @@ -70,7 +66,7 @@ define( 'LS_INDIVIDUAL', 0 ); define( 'LS_CHUNKED', 1 ); /** @todo document */ -function compressWithConcat( $startId, $maxChunkSize, $maxChunkFactor, $factorThreshold, $beginDate, +function compressWithConcat( $startId, $maxChunkSize, $beginDate, $endDate, $extdb="", $maxPageId = false ) { $fname = 'compressWithConcat'; @@ -198,7 +194,7 @@ function compressWithConcat( $startId, $maxChunkSize, $maxChunkFactor, $factorTh $primaryOldid = $revs[$i]->rev_text_id; # Get the text of each revision and add it to the object - for ( $j = 0; $j < $thisChunkSize && $chunk->isHappy( $maxChunkFactor, $factorThreshold ); $j++ ) { + for ( $j = 0; $j < $thisChunkSize && $chunk->isHappy(); $j++ ) { $oldid = $revs[$i + $j]->rev_text_id; # Get text @@ -229,7 +225,7 @@ function compressWithConcat( $startId, $maxChunkSize, $maxChunkFactor, $factorTh $stub = false; print 'x'; } else { - $stub = $chunk->addItem( $text ); + $stub = new HistoryBlobStub( $chunk->addItem( $text ) ); $stub->setLocation( $primaryOldid ); $stub->setReferrer( $oldid ); print '.'; |