# Make a copy of all images encountered
var $makeSnapshot = false;
+ # Don't image description pages in doEverything()
+ var $noSharedDesc = false;
+
# Make links assuming the script path is in the same directory as
# the destination
var $alternateScriptPath = false;
$this->doSpecials();
}
$this->doLocalImageDescriptions();
- $this->doSharedImageDescriptions();
+
+ if ( !$this->noSharedDesc ) {
+ $this->doSharedImageDescriptions();
+ }
$this->setCheckpoint( 'everything', 'done' );
}
function doImageDescriptions() {
$this->doLocalImageDescriptions();
- $this->doSharedImageDescriptions();
+ if ( !$this->noSharedDesc ) {
+ $this->doSharedImageDescriptions();
+ }
}
/**
* --checkpoint <file> use a checkpoint file to allow restarting of interrupted dumps
* --slice <n/m> 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
'sliceDenominator' => $sliceDenominator,
'noOverwrite' => $options['no-overwrite'],
'compress' => $options['compress'],
+ 'noSharedDesc' => $options['no-shared-desc'],
));
$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 );