* Use ImageMagick -thumbnail option instead of -resize to avoid including
excessive metadata in thumbs (requires ImageMagick 6.0.0 or newer).
* (bug 7499) Corrections to Swedish talk namespace names
+* (bug 7508) Added option to compress HTML pages by dumpHTML.php
== Languages updated ==
# Has setupGlobals been called?
var $setupDone = false;
+ # Has to compress html pages
+ var $compress = false;
+
# List of raw pages used in the current article
var $rawPages;
$fullName = "{$this->dest}/$filename";
$fullDir = dirname( $fullName );
+ if ( $this->compress ) {
+ $fullName .= ".gz";
+ $text = gzencode( $text, 9 );
+ }
+
wfMkdirParents( $fullDir, 0755 );
wfSuppressWarnings();
}
}
+
$sk =& $wgUser->getSkin();
ob_start();
$sk->outputPage( $wgOut );
$url = str_replace( '$1', "../$iw/" . wfUrlencode( $this->getHashedFilename( $title ) ),
$wgArticlePath );
}
+ $url .= $this->compress ? ".gz" : "";
return false;
} else {
return true;
if ( $url === false ) {
$url = str_replace( '$1', wfUrlencode( $this->getHashedFilename( $title ) ), $wgArticlePath );
}
-
+ $url .= $this->compress ? ".gz" : "";
return false;
}
* --force-copy copy commons instead of symlink, needed for Wikimedia
* --interlang allow interlanguage links
* --image-snapshot copy all images used to the destination directory
+ * --compress generate compressed version of the html pages
*/
'sliceNumerator' => $sliceNumerator,
'sliceDenominator' => $sliceDenominator,
'noOverwrite' => $options['no-overwrite'],
+ 'compress' => $options['compress'],
));