From 603f6702603e162a9db06d14984dbca6d0f8208e Mon Sep 17 00:00:00 2001 From: Ilmari Karonen Date: Mon, 15 Jan 2007 18:32:10 +0000 Subject: [PATCH] IE compatibility fix (thanks, howcheng): don't pass a null second param to insertBefore() --- includes/DefaultSettings.php | 2 +- skins/common/wikibits.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 20c3915364..2f473eed55 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -1105,7 +1105,7 @@ $wgCacheEpoch = '20030516000000'; * to ensure that client-side caches don't keep obsolete copies of global * styles. */ -$wgStyleVersion = '49'; +$wgStyleVersion = '50'; # Server-side caching: diff --git a/skins/common/wikibits.js b/skins/common/wikibits.js index c6c8fc7c88..6af4514c26 100644 --- a/skins/common/wikibits.js +++ b/skins/common/wikibits.js @@ -576,8 +576,10 @@ function addPortletLink(portlet, href, text, id, tooltip, accesskey, nextnode) { updateTooltipAccessKeys( new Array( link ) ); } - if ( nextnode && nextnode.parentNode != node ) nextnode = null; - node.insertBefore( item, nextnode ); + if ( nextnode && nextnode.parentNode == node ) + node.insertBefore( item, nextnode ); + else + node.appendChild( item ); // IE compatibility (?) return item; } -- 2.20.1