$sliceDenominator = $bits[1]; } else { $sliceNumerator = $sliceDenominator = 1; } $wgHTMLDump = new DumpHTML(array('dest' => $dest, 'forceCopy' => $options['force-copy'], 'alternateScriptPath' => $options['interlang'], 'interwiki' => $options['interlang'], 'skin' => $skin, 'makeSnapshot' => $options['image-snapshot'], 'checkpointFile' => $options['checkpoint'], 'startID' => $start, 'endID' => $end, 'sliceNumerator' => $sliceNumerator, 'sliceDenominator' => $sliceDenominator, 'noOverwrite' => $options['no-overwrite'], 'compress' => $options['compress'], 'noSharedDesc' => $options['no-shared-desc'], 'udpProfile' => $options['udp-profile'], 'showTitles' => $options['show-titles'], 'group' => $options['group'])); $wgHTMLDump->setupDestDir(); if ($options['special']) { $wgHTMLDump->doSpecials(); } elseif ($options['images']) { $wgHTMLDump->doImageDescriptions(); } elseif ($options['categories']) { $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); $server = $dbr->getProperty('mServer'); print "Using database {$server}\n"; if (!isset($options['e'])) { $wgHTMLDump->doEverything(); } else { $wgHTMLDump->doArticles(); } } if (isset($options['debug'])) { #print_r($GLOBALS); # Workaround for bug #36957 $globals = array_keys($GLOBALS);