From: Ilmari Karonen Date: Mon, 15 Jan 2007 18:32:10 +0000 (+0000) Subject: IE compatibility fix (thanks, howcheng): don't pass a null second param to insertBefore() X-Git-Tag: 1.31.0-rc.0~54377 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=603f6702603e162a9db06d14984dbca6d0f8208e;p=lhc%2Fweb%2Fwiklou.git IE compatibility fix (thanks, howcheng): don't pass a null second param to insertBefore() --- 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; }