diff options
author | Tim Starling <tstarling@users.mediawiki.org> | 2006-08-23 06:16:38 +0000 |
---|---|---|
committer | Tim Starling <tstarling@users.mediawiki.org> | 2006-08-23 06:16:38 +0000 |
commit | 47887318a2ca64760db397ff02bd7b72b6cc98cc (patch) | |
tree | 7a3c28aecad7b3f4233e0d8ac81468a30c4aed5a /maintenance/dumpHTML.inc | |
parent | 14d347a28cdb5fcb7a028bf5de4e7a32d258e99f (diff) | |
download | mediawikicore-47887318a2ca64760db397ff02bd7b72b6cc98cc.tar.gz mediawikicore-47887318a2ca64760db397ff02bd7b72b6cc98cc.zip |
more bugs
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/16191
Diffstat (limited to 'maintenance/dumpHTML.inc')
-rw-r--r-- | maintenance/dumpHTML.inc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/maintenance/dumpHTML.inc b/maintenance/dumpHTML.inc index acc18c61e21b..6278f23b0c38 100644 --- a/maintenance/dumpHTML.inc +++ b/maintenance/dumpHTML.inc @@ -113,6 +113,11 @@ class DumpHTML { $title = Title::newMainPage(); $text = $this->getArticleHTML( $title ); + + # Parse the XHTML to find the images + $images = $this->findImages( $text ); + $this->copyImages( $images ); + $file = fopen( "{$this->dest}/index.html", "w" ); if ( !$file ) { print "\nCan't open index.html for writing\n"; @@ -290,7 +295,7 @@ class DumpHTML { global $wgUploadPath, $wgLogo, $wgMaxCredits, $wgSharedUploadPath; global $wgHideInterlanguageLinks, $wgUploadDirectory, $wgThumbnailScriptPath; global $wgSharedThumbnailScriptPath, $wgEnableParserCache, $wgHooks, $wgServer; - global $wgRightsUrl, $wgRightsText, $wgCopyrightIcon; + global $wgRightsUrl, $wgRightsText, $wgCopyrightIcon, $wgEnableSidebarCache; static $oldLogo = NULL; @@ -348,6 +353,7 @@ class DumpHTML { $wgThumbnailScriptPath = $wgSharedThumbnailScriptPath = false; $wgEnableParserCache = false; $wgMathPath = "$wgScriptPath/math"; + $wgEnableSidebarCache = false; if ( !empty( $wgRightsText ) ) { $wgRightsUrl = "$wgScriptPath/COPYING.html"; |