From: Tim Starling Date: Wed, 26 Oct 2005 00:22:50 +0000 (+0000) Subject: really fixed relative path bug X-Git-Tag: 1.6.0~1315 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=4ecf91df1aa094c2e1e37a416d1582d5d42454a4;p=lhc%2Fweb%2Fwiklou.git really fixed relative path bug --- diff --git a/maintenance/dumpHTML.inc b/maintenance/dumpHTML.inc index ec29fb02dd..6c2ced5758 100644 --- a/maintenance/dumpHTML.inc +++ b/maintenance/dumpHTML.inc @@ -33,8 +33,8 @@ class DumpHTML { # the destination var $alternateScriptPath = false; - # Original article path, for "current version" links - var $oldArticlePath = false; + # Original values of various globals + var $oldArticlePath = false, $oldCopyrightIcon = false; # Has setupGlobals been called? var $setupDone = false; @@ -325,8 +325,11 @@ class DumpHTML { } # Another ugly hack + if ( !$this->setupDone ) { + $this->oldCopyrightIcon = $wgCopyrightIcon; + } $wgCopyrightIcon = str_replace( 'src="/images', - 'src="' . htmlspecialchars( $wgScriptPath ) . '/images', $wgCopyrightIcon ); + 'src="' . htmlspecialchars( $wgScriptPath ) . '/images', $this->oldCopyrightIcon );