From 4ecf91df1aa094c2e1e37a416d1582d5d42454a4 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Wed, 26 Oct 2005 00:22:50 +0000 Subject: [PATCH] really fixed relative path bug --- maintenance/dumpHTML.inc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 ); -- 2.20.1