<?php
/**
- * Compress the text of a wiki
+ * Compress the text of a wiki.
*
- * @package MediaWiki
- * @subpackage Maintenance
- */
-
-/** */
-
-/**
* Usage:
*
* Non-wikimedia
* -h <threshold> is a minimum number of KB, where <max-factor> cuts in
* --extdb <cluster> store specified revisions in an external cluster (untested)
*
+ * @file
+ * @ingroup Maintenance ExternalStorage
*/
-$optionsWithArgs = array( 't', 'c', 's', 'f', 'h', 'extdb', 'endid' );
-require_once( "../commandLine.inc" );
+$optionsWithArgs = array( 't', 'c', 's', 'f', 'h', 'extdb', 'endid', 'e' );
+require_once( dirname(__FILE__) . '/../commandLine.inc' );
require_once( "compressOld.inc" );
if( !function_exists( "gzdeflate" ) ) {
print "You must enable zlib support in PHP to compress old revisions!\n";
print "Please see http://www.php.net/manual/en/ref.zlib.php\n\n";
- die();
+ wfDie();
}
$defaults = array(
't' => 'concat',
'c' => 20,
's' => 0,
- 'f' => 3,
+ 'f' => 5,
'h' => 100,
'b' => '',
'e' => '',
exit();
-?>
+