From a58285fd06c8113c45377c655dd43cef6337e815 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 11 Jan 2007 19:06:07 +0000 Subject: Aktualisierung auf MediaWiki 1.9.0 --- maintenance/dumpHTML.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'maintenance/dumpHTML.php') diff --git a/maintenance/dumpHTML.php b/maintenance/dumpHTML.php index 5e347e4b..2c0c29c4 100644 --- a/maintenance/dumpHTML.php +++ b/maintenance/dumpHTML.php @@ -17,6 +17,8 @@ * --checkpoint use a checkpoint file to allow restarting of interrupted dumps * --slice split the job into m segments and do the n'th one * --images only do image description pages + * --shared-desc only do shared (commons) image description pages + * --no-shared-desc don't do shared image description pages * --categories only do category pages * --redirects only do redirects * --special only do miscellaneous stuff @@ -24,10 +26,11 @@ * --interlang allow interlanguage links * --image-snapshot copy all images used to the destination directory * --compress generate compressed version of the html pages + * --udp-profile profile 1/N rendering operations using ProfilerSimpleUDP */ -$optionsWithArgs = array( 's', 'd', 'e', 'k', 'checkpoint', 'slice' ); +$optionsWithArgs = array( 's', 'd', 'e', 'k', 'checkpoint', 'slice', 'udp-profile' ); $profiling = false; @@ -41,6 +44,10 @@ if ( $profiling ) { } } +if ( in_array( '--udp-profile', $argv ) ) { + define( 'MW_FORCE_PROFILE', 1 ); +} + require_once( "commandLine.inc" ); require_once( "dumpHTML.inc" ); @@ -93,6 +100,8 @@ $wgHTMLDump = new DumpHTML( array( 'sliceDenominator' => $sliceDenominator, 'noOverwrite' => $options['no-overwrite'], 'compress' => $options['compress'], + 'noSharedDesc' => $options['no-shared-desc'], + 'udpProfile' => $options['udp-profile'], )); @@ -104,6 +113,8 @@ if ( $options['special'] ) { $wgHTMLDump->doCategories(); } elseif ( $options['redirects'] ) { $wgHTMLDump->doRedirects(); +} elseif ( $options['shared-desc'] ) { + $wgHTMLDump->doSharedImageDescriptions(); } else { print "Creating static HTML dump in directory $dest. \n"; $dbr =& wfGetDB( DB_SLAVE ); -- cgit v1.2.3-54-g00ecf