IE compatibility fix (thanks, howcheng): don't pass a null second param to insertBefore()
authorIlmari Karonen <vyznev@users.mediawiki.org>
Mon, 15 Jan 2007 18:32:10 +0000 (18:32 +0000)
committerIlmari Karonen <vyznev@users.mediawiki.org>
Mon, 15 Jan 2007 18:32:10 +0000 (18:32 +0000)
includes/DefaultSettings.php
skins/common/wikibits.js

index 20c3915..2f473ee 100644 (file)
@@ -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:
index c6c8fc7..6af4514 100644 (file)
@@ -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;
 }