X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fstorage%2FcompressOld.php;h=dda765d74f0d34533238657254592222555059f8;hb=7e41e0928f1579b8e3d21a6b83d8a6841baa81f7;hp=c0b3d1c52a5db64f5012921c57091f72d5740c32;hpb=7bbe971aec2d548de981a12ed08a7b56a536dcdb;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/storage/compressOld.php b/maintenance/storage/compressOld.php index c0b3d1c52a..dda765d74f 100644 --- a/maintenance/storage/compressOld.php +++ b/maintenance/storage/compressOld.php @@ -1,14 +1,7 @@ is a minimum number of KB, where cuts in * --extdb 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' => '', @@ -79,4 +74,4 @@ if ( $success ) { exit(); -?> +