# 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;
}
# 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 );